UNPKG

@duetds/date-picker

Version:

Duet Date Picker is an open source version of Duet Design System’s accessible date picker.

32 lines (24 loc) 565 B
/*! * find-pkg <https://github.com/jonschlinkert/find-pkg> * * Copyright (c) 2015, Jon Schlinkert. * Licensed under the MIT License. */ 'use strict'; /** * Module dependencies */ var findFile = require('find-file-up'); /** * Find package.json, starting with the given directory. * Based on https://github.com/jonschlinkert/look-up */ module.exports = function(dir, limit, cb) { return findFile('package.json', dir, limit, cb); }; /** * Sync */ module.exports.sync = function(dir, limit) { return findFile.sync('package.json', dir, limit); };