## Usage ```js const findPkg = require('{%= name %}'); ``` **promise** ```js findPkg('a/b/c/some/path') .then(file => console.log(file)) //=> /User/jonschlinkert/dev/a/b/package.json .catch(console.error); ``` **async-await** ```js (async function() { const file = await findPkg('a/b/c/some/path'); console.log(file); //=> '/Users/jonschlinkert/dev/a/b/package.json' })(); ``` **callback** ```js findPkg('a/b/c/some/path', function(err, file) { if (err) throw err; console.log(file); //=> '/Users/jonschlinkert/dev/a/b/package.json' }); ``` **sync** ```js const file = findPkg.sync('a/b/c/some/path'); //=> '/Users/jonschlinkert/dev/a/b/package.json' ```