{"_id":"path2glob","_rev":"455584","name":"path2glob","description":"Get best matching glob from globs array for given path","dist-tags":{"latest":"0.0.2"},"maintainers":[{"name":"floatdrop","email":"floatdrop@gmail.com"}],"time":{"modified":"2021-08-05T07:23:39.000Z","created":"2014-09-05T10:27:24.069Z","0.0.2":"2014-09-05T15:55:13.720Z","0.0.1":"2014-09-05T10:27:24.069Z"},"users":{"soldair":true},"author":{"name":"Vsevolod Strukchinsky","email":"floatdrop@gmail.com"},"repository":{"type":"git","url":"git://github.com/floatdrop/path2glob.git"},"versions":{"0.0.2":{"name":"path2glob","version":"0.0.2","description":"Get best matching glob from globs array for given path","main":"index.js","directories":{"test":"test"},"scripts":{"test":"mocha -R spec -t 100"},"repository":{"type":"git","url":"git://github.com/floatdrop/path2glob.git"},"keywords":["glob","path"],"author":{"name":"Vsevolod Strukchinsky","email":"floatdrop@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/floatdrop/path2glob/issues"},"homepage":"https://github.com/floatdrop/path2glob","devDependencies":{"mocha":"^1.21.4","should":"^4.0.4"},"dependencies":{"glob":"^4.0.5"},"_id":"path2glob@0.0.2","_shasum":"29e8ce0d15407c2a50b633ef8050b2f297c04702","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"floatdrop","email":"floatdrop@gmail.com"},"maintainers":[{"name":"floatdrop","email":"floatdrop@gmail.com"}],"dist":{"shasum":"29e8ce0d15407c2a50b633ef8050b2f297c04702","size":2061,"noattachment":false,"key":"/path2glob/-/path2glob-0.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/path2glob/download/path2glob-0.0.2.tgz"},"publish_time":1409932513720,"_cnpm_publish_time":1409932513720,"_hasShrinkwrap":false},"0.0.1":{"name":"path2glob","version":"0.0.1","description":"Get best matching glob from globs array for given path","main":"index.js","directories":{"test":"test"},"scripts":{"test":"mocha -R spec -t 100"},"repository":{"type":"git","url":"git://github.com/floatdrop/path2glob.git"},"keywords":["glob","path"],"author":{"name":"Vsevolod Strukchinsky","email":"floatdrop@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/floatdrop/path2glob/issues"},"homepage":"https://github.com/floatdrop/path2glob","devDependencies":{"mocha":"^1.21.4","should":"^4.0.4"},"dependencies":{"glob":"^4.0.5"},"_id":"path2glob@0.0.1","_shasum":"8198a67adc14f651ac0b45ef0626c493964e4fd0","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"floatdrop","email":"floatdrop@gmail.com"},"maintainers":[{"name":"floatdrop","email":"floatdrop@gmail.com"}],"dist":{"shasum":"8198a67adc14f651ac0b45ef0626c493964e4fd0","size":1992,"noattachment":false,"key":"/path2glob/-/path2glob-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/path2glob/download/path2glob-0.0.1.tgz"},"publish_time":1409912844069,"_cnpm_publish_time":1409912844069,"_hasShrinkwrap":false}},"readme":"# path2glob\n\n[![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Dependency Status][depstat-image]][depstat-url]\n\nGet best matching glob from globs array for given path.\n\n> __Tip__: negatives will be filtered\n\n## Usage\n\n```js\nvar path2glob = require('path2glob');\n\nvar globs = [\n    './libs/**/*.js',\n    './libs/src/**/*.js',\n];\n\nconsole.log(path2glob('/User/someone/libs/bird/word.js', globs)); // './libs/**/*.js'\nconsole.log(path2glob('/User/someone/libs/src/word.js', globs)); // './libs/src/**/*.js'\n```\n\n## API\n\n### path2glob(path, globs, [opts])\n\nReturns best matching glob from `globs` array.\n\n## License\n\nMIT (c) 2014 Vsevolod Strukchinsky\n\n[npm-url]: https://npmjs.org/package/path2glob\n[npm-image]: http://img.shields.io/npm/v/path2glob.svg?style=flat\n\n[travis-url]: http://travis-ci.org/floatdrop/path2glob\n[travis-image]: http://img.shields.io/travis/floatdrop/path2glob.svg?branch=master&style=flat\n\n[depstat-url]: https://david-dm.org/floatdrop/path2glob\n[depstat-image]: http://img.shields.io/david/floatdrop/path2glob.svg?style=flat\n","_attachments":{},"homepage":"https://github.com/floatdrop/path2glob","bugs":{"url":"https://github.com/floatdrop/path2glob/issues"},"license":"MIT"}