## Usage ```js const origin = require('{%= name %}'); ``` **async/await** ```js (async() => { let url = await origin(); console.log(url); // url => "https://github.com/jonschlinkert/remote-origin-url.git" })(); ``` **Callback** ```js origin((err, url) => { if (err) return console.log(err); console.log(url); // url => "https://github.com/jonschlinkert/remote-origin-url.git" }); ``` **cwd** Specify the current working directory to use: ```js origin(process.cwd(), (err, url) => { if (err) return console.log(err); console.log(url); // url => "https://github.com/jonschlinkert/remote-origin-url.git" }); ``` ### sync ```js console.log(origin.sync()); //=> "https://github.com/jonschlinkert/remote-origin-url.git" ``` Specify the `cwd` to use: ```js console.log(origin.sync(process.cwd())); //=> "https://github.com/jonschlinkert/remote-origin-url.git" ``` ## Release history ### v2.0.0 Now returns a promise if a callback is not supplied. ### v1.0.0 No significant changes, just minor code formatting. it's time for a 1.0 release! ### v0.5.3 **bug fixes** Pass an object to [parse-git-config][] to ensure that `path` is used.