{"_id":"pathspec","_rev":"11-cf20b27248220de891255c93daef54f4","name":"pathspec","description":"Shell-like name/path wildcards, gitignore-like file lists","dist-tags":{"latest":"0.9.2"},"versions":{"0.9.0":{"author":{"name":"Andrey Tarantsov","email":"andrey@tarantsov.com"},"name":"pathspec","description":"Shell-like name/path wildcards, gitignore-like file lists","version":"0.9.0","repository":{"type":"git","url":"git@github.com:andreyvit/pathspec.js.git"},"main":"index.js","scripts":{"test":"./node_modules/mocha/bin/mocha -R ${REPORTER-spec}"},"dependencies":{},"devDependencies":{"mocha":"~1.0.3"},"optionalDependencies":{},"engines":{"node":"*"},"homepage":"https://github.com/andreyvit/pathspec.js","_npmUser":{"name":"andreyvit","email":"andrey@tarantsov.com"},"_id":"pathspec@0.9.0","_engineSupported":true,"_npmVersion":"1.1.16","_nodeVersion":"v0.6.15","_defaultsLoaded":true,"dist":{"shasum":"fd753e7f725668dbe191fb252a060b0801e8d3f0","tarball":"https://registry.npmjs.org/pathspec/-/pathspec-0.9.0.tgz","integrity":"sha512-YIpVcy0z5wJsHr2x0gvdBBdIeyS0iJmAqoR68qBt6S7DERV05qGlB5EFOixQiepFeVEYEJsW493zvdtdE7O/sA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDAsW/vl9rxPTJfjiHrd31iKMYQUTojXCQR6R+JHkTHYAIgJhFCJvq4FIjhxhb8hAtGTTCnx/WvZCdC3qaStVtp0Rg="}]},"maintainers":[{"name":"andreyvit","email":"andrey@tarantsov.com"}]},"0.9.1":{"author":{"name":"Andrey Tarantsov","email":"andrey@tarantsov.com"},"name":"pathspec","description":"Shell-like name/path wildcards, gitignore-like file lists","version":"0.9.1","repository":{"type":"git","url":"git@github.com:andreyvit/pathspec.js.git"},"main":"index.js","bin":{"pathspec-find":"bin/pathspec-find.js"},"scripts":{"test":"./node_modules/mocha/bin/mocha -R ${REPORTER-spec}"},"dependencies":{},"devDependencies":{"mocha":"~1.0.3"},"optionalDependencies":{},"engines":{"node":"*"},"homepage":"https://github.com/andreyvit/pathspec.js","_npmUser":{"name":"andreyvit","email":"andrey@tarantsov.com"},"_id":"pathspec@0.9.1","_engineSupported":true,"_npmVersion":"1.1.16","_nodeVersion":"v0.6.15","_defaultsLoaded":true,"dist":{"shasum":"5e46ee968e5e51f06ca5aa94acf4544e5645c1d5","tarball":"https://registry.npmjs.org/pathspec/-/pathspec-0.9.1.tgz","integrity":"sha512-ZBPR6JzhGXOqTFfUi9QgcMpWTv/W96iLXvBkZrUZvQIIuFORW4G9D4lbA7CzBNDBrv2Hzsh6Abih8j9AgTL/4w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHZuW3iZybF44g1l7PydunyELo7MQL3InlJJzyXB6GdXAiAijYvUSZLieGAE/v6o8D0PgJoO3KSBk56f174aY1u2gQ=="}]},"maintainers":[{"name":"andreyvit","email":"andrey@tarantsov.com"}]},"0.9.2":{"author":{"name":"Andrey Tarantsov","email":"andrey@tarantsov.com"},"name":"pathspec","description":"Shell-like name/path wildcards, gitignore-like file lists","version":"0.9.2","repository":{"type":"git","url":"git@github.com:andreyvit/pathspec.js.git"},"main":"index.js","bin":{"pathspec-find":"bin/pathspec-find.js"},"scripts":{"test":"./node_modules/mocha/bin/mocha -R ${REPORTER-spec}"},"dependencies":{},"devDependencies":{"mocha":"~1.0.3"},"optionalDependencies":{},"engines":{"node":"*"},"homepage":"https://github.com/andreyvit/pathspec.js","_npmUser":{"name":"andreyvit","email":"andreyvit@me.com"},"_id":"pathspec@0.9.2","_engineSupported":true,"_npmVersion":"1.1.16","_nodeVersion":"v0.6.15","_defaultsLoaded":true,"dist":{"shasum":"af232b059afcf999902cdd24f8ca60a4156a3637","tarball":"https://registry.npmjs.org/pathspec/-/pathspec-0.9.2.tgz","integrity":"sha512-bzI3UHVLixbP5B30qXN8jkhG96j3ueqHXXh6V8VbqnyWePpXjeb+1WPH2lydEOsvovTvNRovm1Fy6Y2oCgH5Jg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDoDEHXcXOp/buy7mM2f2n3ZyjXngej8n+LyaVDAiP7RwIgEsbv4ENgbOmMtwi7BicmBD1ASwVitalEsbIguCDSNl0="}]},"maintainers":[{"name":"andreyvit","email":"andrey@tarantsov.com"}]}},"readme":"pathspec.js\n===========\n\nShell-style file name masks:\n\n    var Mask = require('pathspec').Mask;\n    console.log(Mask.parse('*.txt').matches('foo.txt')); // true\n    console.log(Mask.parse('*.txt').matches('foo.js'));  // false\n\nShell-style path wildcards:\n\n    var RelPathSpec = require('pathspec').RelPathSpec;\n    console.log(RelPathSpec.parse('foo/**/bar/*.txt').matches('foo/moo/goo/bar/myfile.txt')); // true\n    console.log(RelPathSpec.parse('foo.txt').matches('bar/foo.txt')); // false\n\n.gitignore-style path wildcards:\n\n    var RelPathSpec = require('pathspec').RelPathSpec;\n    console.log(RelPathSpec.parseGitStyleSpec('foo/**/bar').matches('foo/moo/goo/bar/poo/koo/myfile.txt')); // true\n    console.log(RelPathSpec.parseGitStyleSpec('foo.txt').matches('bar/foo.txt')); // true\n\n.gitignore-style path lists:\n\n    var RelPathList = require('pathspec').RelPathList;\n    var list = RelPathList.parse(['*.js', '!bin/*.js']);\n    console.log(list.matches('foo.js')); // true\n    console.log(list.matches('lib/foo.js')); // true\n    console.log(list.matches('bin/foo.js')); // false\n\nBuild a path list manually (spec style is up to you):\n\n    var RelPathList = require('pathspec').RelPathList;\n    var list = new RelPathList();\n    list.include(RelPathSpec.parse('*.js'));\n    list.exclude(RelPathSpec.parse('bar.js'));\n    console.log(list.matches('foo.js')); // true\n    console.log(list.matches('lib/foo.js')); // false\n    console.log(list.matches('bar.js')); // false\n\nNote: they are called RelSomething because the paths are relative to some specific unknown root. Beware that things like '.' and '..' are not treated in any special way.\n\n\nInstallation\n------------\n\n    npm install pathspec\n\n\nRunning tests\n-------------\n\n    npm test\n    REPORTER=dot npm test\n\n\nLicense\n-------\n\nMIT.\n","maintainers":[{"name":"andreyvit","email":"andrey@tarantsov.com"},{"name":"nitoyon","email":"nitoyon@gmail.com"}],"time":{"modified":"2022-06-23T14:55:31.999Z","created":"2012-05-08T09:22:05.935Z","0.9.0":"2012-05-08T09:22:10.041Z","0.9.1":"2012-05-18T03:31:51.129Z","0.9.2":"2012-05-25T08:25:19.253Z"},"author":{"name":"Andrey Tarantsov","email":"andrey@tarantsov.com"},"repository":{"type":"git","url":"git@github.com:andreyvit/pathspec.js.git"},"homepage":"https://github.com/andreyvit/pathspec.js","readmeFilename":"","users":{"majgis":true}}