Sha256: 276db1268d06ab24799e5f693f7267a60aa61cc906e0f9c17c55f03205b3c348
Contents?: true
Size: 297 Bytes
Versions: 108
Compression:
Stored size: 297 Bytes
Contents
'use strict'; const path = require('path'); const findUp = require('find-up'); module.exports = cwd => findUp('package.json', {cwd}).then(fp => fp ? path.dirname(fp) : null); module.exports.sync = cwd => { const fp = findUp.sync('package.json', {cwd}); return fp ? path.dirname(fp) : null; };
Version data entries
108 entries across 107 versions & 14 rubygems