## Usage ```js const branch = require('{%= name %}'); ``` Optionally pass the cwd (current working directory) as the first argument. **Promise** ```js branch('some/path') .then(name => console.log('Branch:', name)) //=> 'master' .catch(console.error); ``` **Callback** ```js branch(function(err, name) { if (err) throw err; console.log('Branch:', name); //=> 'master' }); ``` **Sync** ```js console.log('Branch:', branch.sync()); //=> 'master' ```