hexo/node_modules/pkg-up/index.js

6 lines
199 B
JavaScript
Raw Permalink Normal View History

2023-10-03 11:14:36 +08:00
'use strict';
const findUp = require('find-up');
module.exports = async ({cwd} = {}) => findUp('package.json', {cwd});
module.exports.sync = ({cwd} = {}) => findUp.sync('package.json', {cwd});