index.js 221 B

12345678910
  1. 'use strict';
  2. var findUp = require('find-up');
  3. module.exports = function (cwd) {
  4. return findUp('package.json', {cwd: cwd});
  5. };
  6. module.exports.sync = function (cwd) {
  7. return findUp.sync('package.json', {cwd: cwd});
  8. };