Debian Codegraph @

workspaces/arborist/test/fixtures/registry-mocks/content/contains-path.json

raw
1 {
2 "_id": "contains-path",
3 "_rev": "3-453f1d1f79acf3346062cc6cb1ab9ae6",
4 "name": "contains-path",
5 "description": "Return true if a file path contains the given path.",
6 "dist-tags": {
7 "latest": "1.0.0"
8 },
9 "versions": {
10 "0.1.0": {
11 "name": "contains-path",
12 "description": "Return true if a file path contains the given path.",
13 "version": "0.1.0",
14 "homepage": "https://github.com/jonschlinkert/contains-path",
15 "author": {
16 "name": "Jon Schlinkert",
17 "url": "https://github.com/jonschlinkert"
18 },
19 "repository": {
20 "type": "git",
21 "url": "git+https://github.com/jonschlinkert/contains-path.git"
22 },
23 "bugs": {
24 "url": "https://github.com/jonschlinkert/contains-path/issues"
25 },
26 "license": "MIT",
27 "files": [
28 "index.js"
29 ],
30 "main": "index.js",
31 "engines": {
32 "node": ">=0.10.0"
33 },
34 "scripts": {
35 "test": "mocha"
36 },
37 "dependencies": {},
38 "devDependencies": {
39 "mocha": "*"
40 },
41 "keywords": [
42 "contains",
43 "directory",
44 "dirname",
45 "exec",
46 "ext",
47 "extname",
48 "file",
49 "filepath",
50 "fp",
51 "has",
52 "match",
53 "matches",
54 "path",
55 "regex",
56 "test"
57 ],
58 "verb": {
59 "related": {
60 "list": [
61 "ends-with",
62 "path-ends-with",
63 "path-segments",
64 "is-absolute",
65 "is-relative",
66 "parse-filepath"
67 ]
68 }
69 },
70 "_id": "[email protected]",
71 "_shasum": "fe8cf184ff6670b6baef01a9d4861a5cbec4120a",
72 "_from": ".",
73 "_npmVersion": "2.10.1",
74 "_nodeVersion": "0.12.4",
75 "_npmUser": {
76 "name": "jonschlinkert",
77 "email": "[email protected]"
78 },
79 "maintainers": [
80 {
81 "name": "jonschlinkert",
82 "email": "[email protected]"
83 }
84 ],
85 "dist": {
86 "shasum": "fe8cf184ff6670b6baef01a9d4861a5cbec4120a",
87 "tarball": "https://registry.npmjs.org/contains-path/-/contains-path-0.1.0.tgz"
88 },
89 "directories": {}
90 },
91 "1.0.0": {
92 "name": "contains-path",
93 "description": "Return true if a file path contains the given path.",
94 "version": "1.0.0",
95 "homepage": "https://github.com/jonschlinkert/contains-path",
96 "author": {
97 "name": "Jon Schlinkert",
98 "url": "https://github.com/jonschlinkert"
99 },
100 "contributors": [
101 {
102 "name": "Gerard",
103 "email": "[email protected]",
104 "url": "https://github.com/germtb"
105 },
106 {
107 "name": "Jon Schlinkert",
108 "email": "[email protected]",
109 "url": "http://twitter.com/jonschlinkert"
110 }
111 ],
112 "repository": {
113 "type": "git",
114 "url": "git+https://github.com/jonschlinkert/contains-path.git"
115 },
116 "bugs": {
117 "url": "https://github.com/jonschlinkert/contains-path/issues"
118 },
119 "license": "MIT",
120 "files": [
121 "index.js"
122 ],
123 "main": "index.js",
124 "engines": {
125 "node": ">=0.10.0"
126 },
127 "scripts": {
128 "test": "mocha"
129 },
130 "dependencies": {
131 "normalize-path": "^2.1.1",
132 "path-starts-with": "^1.0.0"
133 },
134 "devDependencies": {
135 "gulp-format-md": "^0.1.12",
136 "mocha": "^3.2.0"
137 },
138 "keywords": [
139 "contains",
140 "directory",
141 "dirname",
142 "exec",
143 "ext",
144 "extname",
145 "file",
146 "filepath",
147 "fp",
148 "has",
149 "match",
150 "matches",
151 "path",
152 "regex",
153 "test"
154 ],
155 "verb": {
156 "related": {
157 "list": [
158 "ends-with",
159 "normalize-path",
160 "path-ends-with",
161 "unixify"
162 ]
163 },
164 "toc": false,
165 "layout": "default",
166 "tasks": [
167 "readme"
168 ],
169 "plugins": [
170 "gulp-format-md"
171 ],
172 "lint": {
173 "reflinks": true
174 }
175 },
176 "gitHead": "f99a946c17719ef4907baffeb5aa2c801837ba63",
177 "_id": "[email protected]",
178 "_shasum": "3458b332185603e8eed18f518d4a10888a3abc91",
179 "_from": ".",
180 "_npmVersion": "4.2.0",
181 "_nodeVersion": "7.7.3",
182 "_npmUser": {
183 "name": "jonschlinkert",
184 "email": "[email protected]"
185 },
186 "maintainers": [
187 {
188 "name": "jonschlinkert",
189 "email": "[email protected]"
190 }
191 ],
192 "dist": {
193 "shasum": "3458b332185603e8eed18f518d4a10888a3abc91",
194 "tarball": "https://registry.npmjs.org/contains-path/-/contains-path-1.0.0.tgz"
195 },
196 "_npmOperationalInternal": {
197 "host": "packages-18-east.internal.npmjs.com",
198 "tmp": "tmp/contains-path-1.0.0.tgz_1492413994324_0.46549268695525825"
199 },
200 "directories": {}
201 }
202 },
203 "readme": "# contains-path [![NPM version](https://img.shields.io/npm/v/contains-path.svg?style=flat)](https://www.npmjs.com/package/contains-path) [![NPM monthly downloads](https://img.shields.io/npm/dm/contains-path.svg?style=flat)](https://npmjs.org/package/contains-path) [![Linux Build Status](https://img.shields.io/travis/jonschlinkert/contains-path.svg?style=flat&label=Travis)](https://travis-ci.org/jonschlinkert/contains-path) [![Windows Build Status](https://img.shields.io/appveyor/ci/jonschlinkert/contains-path.svg?style=flat&label=AppVeyor)](https://ci.appveyor.com/project/jonschlinkert/contains-path)\n\n> Return true if a file path contains the given path.\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/):\n\n```sh\n$ npm install --save contains-path\n```\n\nInstall with [yarn](https://yarnpkg.com):\n\n```sh\n$ yarn add contains-path\n```\n\n## HEADS UP!\n\nAs of v1.0.0, this library no longer uses regex for matching. Please do not hesitate to [report any issues or regressiosn](../../issues/new).\n\n## Usage\n\n```js\nvar containsPath = require('contains-path');\n\ncontainsPath('foo/bar', 'foo'); //=> true\ncontainsPath('foo/bar', 'bar'); //=> true\ncontainsPath('foo/bar', 'qux'); //=> false\n\n// returns false for partial matches\ncontainsPath('foobar', 'foo'); //=> false\ncontainsPath('foo.bar', 'foo'); //=> false\ncontainsPath('foo.bar', 'bar'); //=> false\n\n// prefix with \"./\" to match from beginning of filepath\ncontainsPath('bar/foo', 'foo'); //=> true\ncontainsPath('bar/foo', './foo'); //=> false\n```\n\n## Negation\n\nPrefix with `!` to invert matching behavior:\n\n```js\ncontainsPath('foo/bar', '!foo'); //=> false\ncontainsPath('foo/bar', '!qux'); //=> true\n```\n\n## Options\n\n### options.nocase\n\n**Type**: `boolean`\n\n**Default**: `false`\n\nDisable case sensitivity.\n\n```js\ncontainsPath('foo/bar', 'FOO'); //=> false\ncontainsPath('foo/bar', 'FOO', {nocase: true}); //=> true\n```\n\n### options.partialMatch\n\n**Type**: `boolean`\n\n**Default**: `false`\n\nAllow \"partial\" matches:\n\n```js\ncontainsPath('foobar', 'foo'); //=> false \ncontainsPath('foobar', 'foo', {partialMatch: true}); //=> true \n\ncontainsPath('foo.bar', 'foo'); //=> false \ncontainsPath('foo.bar', 'foo', {partialMatch: true}); //=> true \n```\n\n## About\n\n### Related projects\n\n* [ends-with](https://www.npmjs.com/package/ends-with): Returns `true` if the given `string` or `array` ends with `suffix` using strict equality for… [more](https://github.com/jonschlinkert/ends-with) | [homepage](https://github.com/jonschlinkert/ends-with \"Returns `true` if the given `string` or `array` ends with `suffix` using strict equality for comparisons.\")\n* [normalize-path](https://www.npmjs.com/package/normalize-path): Normalize file path slashes to be unix-like forward slashes. Also condenses repeat slashes to a… [more](https://github.com/jonschlinkert/normalize-path) | [homepage](https://github.com/jonschlinkert/normalize-path \"Normalize file path slashes to be unix-like forward slashes. Also condenses repeat slashes to a single slash and removes and trailing slashes unless disabled.\")\n* [path-ends-with](https://www.npmjs.com/package/path-ends-with): Return `true` if a file path ends with the given string/suffix. | [homepage](https://github.com/jonschlinkert/path-ends-with \"Return `true` if a file path ends with the given string/suffix.\")\n* [unixify](https://www.npmjs.com/package/unixify): Convert Windows file paths to unix paths. | [homepage](https://github.com/jonschlinkert/unixify \"Convert Windows file paths to unix paths.\")\n\n### Contributing\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).\n\n### Contributors\n\n| **Commits** | **Contributor** | \n| --- | --- |\n| 2 | [jonschlinkert](https://github.com/jonschlinkert) |\n| 1 | [germtb](https://github.com/germtb) |\n\n### Building docs\n\n_(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_\n\nTo generate the readme, run the following command:\n\n```sh\n$ npm install -g verbose/verb#dev verb-generate-readme && verb\n```\n\n### Running tests\n\nRunning and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:\n\n```sh\n$ npm install && npm test\n```\n\n### Author\n\n**Jon Schlinkert**\n\n* [github/jonschlinkert](https://github.com/jonschlinkert)\n* [twitter/jonschlinkert](https://twitter.com/jonschlinkert)\n\n### License\n\nCopyright © 2017, [Jon Schlinkert](https://github.com/jonschlinkert).\nReleased under the [MIT License](LICENSE).\n\n***\n\n_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.5.0, on April 17, 2017._",
204 "maintainers": [
205 {
206 "name": "jonschlinkert",
207 "email": "[email protected]"
208 }
209 ],
210 "time": {
211 "modified": "2017-04-17T07:26:34.883Z",
212 "created": "2015-07-07T10:41:33.202Z",
213 "0.1.0": "2015-07-07T10:41:33.202Z",
214 "1.0.0": "2017-04-17T07:26:34.883Z"
215 },
216 "homepage": "https://github.com/jonschlinkert/contains-path",
217 "keywords": [
218 "contains",
219 "directory",
220 "dirname",
221 "exec",
222 "ext",
223 "extname",
224 "file",
225 "filepath",
226 "fp",
227 "has",
228 "match",
229 "matches",
230 "path",
231 "regex",
232 "test"
233 ],
234 "repository": {
235 "type": "git",
236 "url": "git+https://github.com/jonschlinkert/contains-path.git"
237 },
238 "author": {
239 "name": "Jon Schlinkert",
240 "url": "https://github.com/jonschlinkert"
241 },
242 "bugs": {
243 "url": "https://github.com/jonschlinkert/contains-path/issues"
244 },
245 "license": "MIT",
246 "readmeFilename": "README.md",
247 "users": {
248 "scottfreecode": true
249 },
250 "contributors": [
251 {
252 "name": "Gerard",
253 "email": "[email protected]",
254 "url": "https://github.com/germtb"
255 },
256 {
257 "name": "Jon Schlinkert",
258 "email": "[email protected]",
259 "url": "http://twitter.com/jonschlinkert"
260 }
261 ],
262 "_attachments": {}
263 }