UNPKG

vue-simple-range-slider

Version:

Change Your numeric value or numeric range value with dragging handles

11 lines (9 loc) 252 B
const fs = require('fs') const path = require('path') const readPkg = require('read-pkg') exports.resolvePkg = function (context) { if (fs.existsSync(path.join(context, 'package.json'))) { return readPkg.sync({ cwd: context }) } return {} }