Sha256: 6c970eb55a1dbaa660aa50a13f227cc8eaabe36d0734e508c8d3e8200c107778
Contents?: true
Size: 432 Bytes
Versions: 49
Compression:
Stored size: 432 Bytes
Contents
'use strict'; const findUp = require('find-up'); const readPkg = require('read-pkg'); module.exports = opts => { return findUp('package.json', opts).then(fp => { if (!fp) { return {}; } return readPkg(fp, opts).then(pkg => ({pkg, path: fp})); }); }; module.exports.sync = opts => { const fp = findUp.sync('package.json', opts); if (!fp) { return {}; } return { pkg: readPkg.sync(fp, opts), path: fp }; };
Version data entries
49 entries across 49 versions & 5 rubygems