Debian Codegraph @

workspaces/arborist/test/fixtures/registry-mocks/content/skip-regex.json

raw
1 {
2 "_id": "skip-regex",
3 "_rev": "7-0e7e3e2f31726bd0a90fd1e81e385de1",
4 "name": "skip-regex",
5 "description": "Micro parser for detection of literal regexes",
6 "dist-tags": {
7 "latest": "1.0.2"
8 },
9 "versions": {
10 "0.2.0": {
11 "name": "skip-regex",
12 "version": "0.2.0",
13 "description": "Micro parser for detection of literal regexes",
14 "main": "./dist/skip-regex.js",
15 "module": "./lib/skip-regex.js",
16 "jsnext:main": "./lib/skip-regex.js",
17 "types": "./index.d.ts",
18 "engines": {
19 "node": ">=4.2",
20 "npm": ">=3.0"
21 },
22 "scripts": {
23 "test": "node ./test/run.js",
24 "pretest": "rollup -c",
25 "build": "rm -rf ./dist/* && npm t",
26 "prepublish": "npm run build"
27 },
28 "keywords": [
29 "regexp",
30 "parser",
31 "javascript",
32 "es6"
33 ],
34 "homepage": "https://github.com/aMarCruz/skip-regex",
35 "repository": {
36 "type": "git",
37 "url": "git+https://github.com/aMarCruz/skip-regex.git"
38 },
39 "author": {
40 "name": "aMarCruz",
41 "email": "[email protected]"
42 },
43 "license": "MIT",
44 "devDependencies": {
45 "rollup": "^0.43.0",
46 "rollup-plugin-buble": "^0.15.0"
47 },
48 "gitHead": "5869d6189f1335226639975bededdc87dc6dbb91",
49 "bugs": {
50 "url": "https://github.com/aMarCruz/skip-regex/issues"
51 },
52 "_id": "[email protected]",
53 "_shasum": "e256cba1eb98b78a46574f9461ae931a691bac6e",
54 "_from": ".",
55 "_npmVersion": "3.10.10",
56 "_nodeVersion": "6.10.1",
57 "_npmUser": {
58 "name": "amarcruz",
59 "email": "[email protected]"
60 },
61 "dist": {
62 "shasum": "e256cba1eb98b78a46574f9461ae931a691bac6e",
63 "tarball": "https://registry.npmjs.org/skip-regex/-/skip-regex-0.2.0.tgz"
64 },
65 "maintainers": [
66 {
67 "name": "amarcruz",
68 "email": "[email protected]"
69 }
70 ],
71 "_npmOperationalInternal": {
72 "host": "s3://npm-registry-packages",
73 "tmp": "tmp/skip-regex-0.2.0.tgz_1498135450265_0.11395376455038786"
74 },
75 "directories": {}
76 },
77 "0.3.0": {
78 "name": "skip-regex",
79 "version": "0.3.0",
80 "description": "Micro parser for detection of literal regexes",
81 "main": "./dist/skip-regex.js",
82 "module": "./dist/skip-regex.esm.js",
83 "jsnext:main": "./dist/skip-regex.esm.js",
84 "types": "./index.d.ts",
85 "files": [
86 "*.ts",
87 "dist/"
88 ],
89 "engines": {
90 "node": ">=4.2",
91 "npm": ">=3.0"
92 },
93 "scripts": {
94 "test": "node ./test/run.js",
95 "pretest": "rollup -c",
96 "build": "rm -rf ./dist/* && npm t",
97 "prepublish": "npm run build"
98 },
99 "keywords": [
100 "regexp",
101 "parser",
102 "javascript",
103 "es6"
104 ],
105 "homepage": "https://github.com/aMarCruz/skip-regex",
106 "repository": {
107 "type": "git",
108 "url": "git+https://github.com/aMarCruz/skip-regex.git"
109 },
110 "author": {
111 "name": "aMarCruz",
112 "email": "[email protected]"
113 },
114 "license": "MIT",
115 "devDependencies": {
116 "rollup": "^0.43.0",
117 "rollup-plugin-buble": "^0.15.0"
118 },
119 "gitHead": "5d2ea6fd2d1509f0d8f4a9195db57916ab70fdca",
120 "bugs": {
121 "url": "https://github.com/aMarCruz/skip-regex/issues"
122 },
123 "_id": "[email protected]",
124 "_shasum": "444388d2ed9b19180fecb0c85d0251b872a0af7f",
125 "_from": ".",
126 "_npmVersion": "3.10.10",
127 "_nodeVersion": "6.10.1",
128 "_npmUser": {
129 "name": "amarcruz",
130 "email": "[email protected]"
131 },
132 "dist": {
133 "shasum": "444388d2ed9b19180fecb0c85d0251b872a0af7f",
134 "tarball": "https://registry.npmjs.org/skip-regex/-/skip-regex-0.3.0.tgz"
135 },
136 "maintainers": [
137 {
138 "name": "amarcruz",
139 "email": "[email protected]"
140 }
141 ],
142 "_npmOperationalInternal": {
143 "host": "s3://npm-registry-packages",
144 "tmp": "tmp/skip-regex-0.3.0.tgz_1499193693830_0.76380804926157"
145 },
146 "directories": {}
147 },
148 "0.3.1": {
149 "name": "skip-regex",
150 "version": "0.3.1",
151 "description": "Micro parser for detection of literal regexes",
152 "main": "./dist/skip-regex.js",
153 "module": "./dist/skip-regex.esm.js",
154 "jsnext:main": "./dist/skip-regex.esm.js",
155 "types": "./index.d.ts",
156 "files": [
157 "*.ts",
158 "dist/"
159 ],
160 "engines": {
161 "node": ">=4.2"
162 },
163 "scripts": {
164 "test": "node ./test/run.js",
165 "pretest": "rollup -c",
166 "build": "rm -rf ./dist/* && npm t",
167 "prepublish": "npm run build"
168 },
169 "keywords": [
170 "regexp",
171 "parser",
172 "javascript",
173 "es6"
174 ],
175 "homepage": "https://github.com/aMarCruz/skip-regex",
176 "repository": {
177 "type": "git",
178 "url": "git+https://github.com/aMarCruz/skip-regex.git"
179 },
180 "author": {
181 "name": "aMarCruz",
182 "email": "[email protected]"
183 },
184 "license": "MIT",
185 "devDependencies": {
186 "rollup": "^0.50.0",
187 "rollup-plugin-buble": "^0.16.0"
188 },
189 "gitHead": "fbb1839a3fbb6797342c70ee2fbe66d02a8cb80a",
190 "bugs": {
191 "url": "https://github.com/aMarCruz/skip-regex/issues"
192 },
193 "_id": "[email protected]",
194 "_shasum": "17919aae2ac4ce3d61d5e77eedd88206c64aa215",
195 "_from": ".",
196 "_npmVersion": "4.2.0",
197 "_nodeVersion": "7.10.1",
198 "_npmUser": {
199 "name": "amarcruz",
200 "email": "[email protected]"
201 },
202 "dist": {
203 "shasum": "17919aae2ac4ce3d61d5e77eedd88206c64aa215",
204 "tarball": "https://registry.npmjs.org/skip-regex/-/skip-regex-0.3.1.tgz"
205 },
206 "maintainers": [
207 {
208 "name": "amarcruz",
209 "email": "[email protected]"
210 }
211 ],
212 "_npmOperationalInternal": {
213 "host": "s3://npm-registry-packages",
214 "tmp": "tmp/skip-regex-0.3.1.tgz_1508446973173_0.46138732973486185"
215 },
216 "directories": {}
217 },
218 "1.0.1": {
219 "name": "skip-regex",
220 "version": "1.0.1",
221 "description": "Micro parser for detection of literal regexes",
222 "main": "./dist/skip-regex.js",
223 "module": "./dist/skip-regex.mjs",
224 "jsnext:main": "./dist/skip-regex.mjs",
225 "browser": "./index.min.js",
226 "source": "src/skip-regex.js",
227 "types": "./index.d.ts",
228 "engines": {
229 "node": ">=4.2"
230 },
231 "scripts": {
232 "test": "nyc mocha ./test/index.js",
233 "pretest": "rollup -mc",
234 "k": "karma start ./test/karma.conf.js",
235 "prek": "rollup -c rollup.browser.js",
236 "build": "rollup -mc && rollup -c rollup.browser.js",
237 "lint": "eslint src/*.js test/*.js",
238 "coverage": "nyc report -r=lcov",
239 "prepublish": "rm ./dist/* && npm run build && npm test"
240 },
241 "keywords": [
242 "javascript",
243 "typescript",
244 "es6",
245 "micro",
246 "parser",
247 "detection",
248 "regex",
249 "regexp"
250 ],
251 "homepage": "https://github.com/aMarCruz/skip-regex",
252 "repository": {
253 "type": "git",
254 "url": "git+https://github.com/aMarCruz/skip-regex.git"
255 },
256 "author": {
257 "name": "aMarCruz",
258 "email": "[email protected]"
259 },
260 "license": "MIT",
261 "devDependencies": {
262 "eslint": "^5.10.0",
263 "karma": "^3.1.4",
264 "karma-chrome-launcher": "^2.2.0",
265 "karma-firefox-launcher": "^1.1.0",
266 "karma-mocha": "^1.3.0",
267 "mocha": "^5.2.0",
268 "nyc": "^13.1.0",
269 "rollup": "^0.68.1",
270 "rollup-plugin-buble": "^0.19.0",
271 "rollup-plugin-cleanup": "^3.0.0",
272 "rollup-plugin-uglify": "^6.0.0"
273 },
274 "gitHead": "8281c8ecc067dd9f861ee0f81d2b18002db1fd78",
275 "bugs": {
276 "url": "https://github.com/aMarCruz/skip-regex/issues"
277 },
278 "_id": "[email protected]",
279 "_npmVersion": "5.6.0",
280 "_nodeVersion": "8.11.2",
281 "_npmUser": {
282 "name": "amarcruz",
283 "email": "[email protected]"
284 },
285 "dist": {
286 "integrity": "sha512-2SF0aPxt9o+71AiZZ9754c0/sJfZBfbZLkIlel3vSVc00/ebBDGRZUB3aFzSxAj4opQd/bH04JFpR7kDl25COA==",
287 "shasum": "1ab50b3152e19acc5b168d837d12b1a403793785",
288 "tarball": "https://registry.npmjs.org/skip-regex/-/skip-regex-1.0.1.tgz",
289 "fileCount": 10,
290 "unpackedSize": 24415,
291 "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcHJJPCRA9TVsSAnZWagAAebYQAIxrYtN/+4Z5fQte6R6h\nakMSHxyX16bTSPLu1KXW2CKYVvfyhTmUepOBUMX5kj0dDa22EWgBb+fy0EjG\nK91N8IxLHJIB68IFgUh54gQNm1Fhg/KU2nKnsSJVoQtZ0Xt1LuT5x+FHILUg\nmdempQpxKfVcrcfQ/w1szmolDpE+M7o6qNdktLV583ot9kXD9USxzw2bTtiA\nhqn9ISEkFU5MsGBlqOe8Yl8rknx2GwJumofRbZHOvjW/UhmIq61XkW/gbM2/\nSC7Z4DYYt1XqJCH4SqhI4/+ntbAaw2IcSB46+zWmKOKhqL9aAbhUxE0Y30bM\ncqEfwr0hnLrkMdoP4192ok2ccM+v3/HkbGr8nRBsRB9SiutmhVwwXZxC4ugP\n5ZWotm4PS3bMY0uti5R1ldsDKxWR9NT9XHZYu5VtRWA1HtXHNmgDgLdE+J8a\nxkSIoxD9vpcikKJkFDHrFINpdT9n6vRGdT9uRzXz9fNhc9ux8f5EMwyMQFJf\nept39nZVZ+q3D6N6fF2JVdkjZF8lSK+t84hVsVo5+rkcdUzU42u+ZiM8oVjG\nSj8iwm0anWC8BgBhHiHznaw9tOZROzTS9DzLJuFsVaMAfN6rNBpIHAxfBlou\n+GTwjNIsRUs5rH4ja3ZBh+wkPWv3zBrw4zBervqDN7//3OwN8pw48StkXerp\nf841\r\n=U+hK\r\n-----END PGP SIGNATURE-----\r\n"
292 },
293 "maintainers": [
294 {
295 "name": "amarcruz",
296 "email": "[email protected]"
297 }
298 ],
299 "directories": {},
300 "_npmOperationalInternal": {
301 "host": "s3://npm-registry-packages",
302 "tmp": "tmp/skip-regex_1.0.1_1545376334724_0.36396184087611805"
303 },
304 "_hasShrinkwrap": false
305 },
306 "1.0.2": {
307 "name": "skip-regex",
308 "version": "1.0.2",
309 "description": "Micro parser for detection of literal regexes",
310 "main": "./dist/skip-regex.js",
311 "module": "./dist/skip-regex.mjs",
312 "jsnext:main": "./dist/skip-regex.mjs",
313 "browser": "./index.min.js",
314 "source": "src/skip-regex.js",
315 "types": "./index.d.ts",
316 "engines": {
317 "node": ">=4.2"
318 },
319 "scripts": {
320 "test": "nyc mocha ./test/index.js",
321 "pretest": "rollup -mc",
322 "k": "karma start ./test/karma.conf.js",
323 "prek": "rollup -c rollup.browser.js",
324 "build": "rollup -mc && rollup -c rollup.browser.js",
325 "lint": "eslint src/*.js test/*.js",
326 "coverage": "nyc report -r=lcov",
327 "prepublish": "rm ./dist/* && npm run build && npm test"
328 },
329 "keywords": [
330 "javascript",
331 "typescript",
332 "es6",
333 "micro",
334 "parser",
335 "detection",
336 "regex",
337 "regexp"
338 ],
339 "homepage": "https://github.com/aMarCruz/skip-regex",
340 "repository": {
341 "type": "git",
342 "url": "git+https://github.com/aMarCruz/skip-regex.git"
343 },
344 "author": {
345 "name": "aMarCruz",
346 "email": "[email protected]"
347 },
348 "license": "MIT",
349 "devDependencies": {
350 "eslint": "^5.10.0",
351 "karma": "^3.1.4",
352 "karma-chrome-launcher": "^2.2.0",
353 "karma-firefox-launcher": "^1.1.0",
354 "karma-mocha": "^1.3.0",
355 "mocha": "^5.2.0",
356 "nyc": "^13.1.0",
357 "rollup": "^0.68.1",
358 "rollup-plugin-buble": "^0.19.0",
359 "rollup-plugin-cleanup": "^3.0.0",
360 "rollup-plugin-uglify": "^6.0.0"
361 },
362 "gitHead": "1ce5518d347a519388edc965dc2537f80c1deae3",
363 "bugs": {
364 "url": "https://github.com/aMarCruz/skip-regex/issues"
365 },
366 "_id": "[email protected]",
367 "_npmVersion": "5.6.0",
368 "_nodeVersion": "8.11.2",
369 "_npmUser": {
370 "name": "amarcruz",
371 "email": "[email protected]"
372 },
373 "dist": {
374 "integrity": "sha512-pEjMUbwJ5Pl/6Vn6FsamXHXItJXSRftcibixDmNCWbWhic0hzHrwkMZo0IZ7fMRH9KxcWDFSkzhccB4285PutA==",
375 "shasum": "ac655d77e7c771ac2b9f37585fea37bff56ad65b",
376 "tarball": "https://registry.npmjs.org/skip-regex/-/skip-regex-1.0.2.tgz",
377 "fileCount": 10,
378 "unpackedSize": 25273,
379 "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcIKt5CRA9TVsSAnZWagAAsp0QAJ6zt1VP4S7xf5jGndJc\ngHKWAZSvbZ6K9Ax/ecRt5NF3zcrfzPR66Im3xkDDAkNkbqTgsgOvJMLX6HRf\nug387whlmXE3421rf5EPl6ftA9ePlHyL8O/XaeTC31F/Ipr/hL88G1iqXSH1\n2GXDwe6qcMUD+bcF29gC0qZppkHLwJYln8qWWUbcPKOf9mnWTq6CDGmIFZl7\nC//SGkInXDXIs9e6eBdTZbve9NMJqKK4JXKJX4aVuNjE6JuyYjjvbNYZdyf6\nf56YuVjip0KLntVY+9lZCu+HeFz/6xubjGb5ZW6CnxUX/EeX+0gf7+g5Owv7\nIompx7xfXf6JXRe4MwL3Hx1g9GBZwK8pkiyYpRHVR+9i6ajY/yNpRLZLRsoo\n10G6yRmeG5HxNS4OLIKlKJKDsqQAnchWrNpy1bwdPv7RIAaP4H4yYmt1psMp\nthdVV8a5dC1QlsXMOSy2V4WNFohzmxSCCqUST/WTICFLYUdhXzNnAizqltaf\niA8e2UA3eOiNSaPgkExdd1uEO1XEzdUMHyn5RwE7bep+UFseDH9MwzSwn9O1\niiv5f0OkmkNo6YS+EYTtzW/Koyy3bbBG0LcvD4yYDPPuGcu5egmvVifEb07d\ndPXxaTFlNN2nRg4esLaIqqDyYhePd3tfHzVFmtnX/nAumSXTr3Aqnpsmf2UW\nceJm\r\n=hWZd\r\n-----END PGP SIGNATURE-----\r\n"
380 },
381 "maintainers": [
382 {
383 "name": "amarcruz",
384 "email": "[email protected]"
385 }
386 ],
387 "directories": {},
388 "_npmOperationalInternal": {
389 "host": "s3://npm-registry-packages",
390 "tmp": "tmp/skip-regex_1.0.2_1545644920059_0.58340694136706"
391 },
392 "_hasShrinkwrap": false
393 }
394 },
395 "readme": "# skipRegex\n\n[![npm Version][npm-badge]][npm-url]\n[![License][license-badge]][license-url]\n[![Build Status][travis-badge]][travis-url]\n[![Coverage][codecov-badge]][codecov-url]\n[![Minified Size][size-badge]][size-url]\n\nMicro parser for detection of literal regexes.\n\n- Fast detection with high accuracy.\n- Minimum size.\n- Compatible with NodeJS, bundlers, IE9+, and modern Browsers.\n- TypeScript definition.\n- Zero dependencies.\n\n## Install\n\n```bash\nnpm install skip-regex --save\n# or\nyarn add skip-regex\n```\n\nor load the global `skipRegex` function in your browser:\n\n```html\n<script src=\"https://unpkg.com/skip-regex/index.min.js\"></script>\n```\n\nThree formats transpiled to ES5:\n\n- CommonJS for node.js and browserify-like bundlers.\n- ESM for bundlers like [Rollup](https://github.com/rollup/rollup).\n- UMD for AMD, CommonJS, and browsers.\n\n## Syntax\n\n```ts\nskipRegex(source: string, start: number) => number\n```\n\nThe `start` position _must_ point to a slash within `source`.\n\nFrom there, `skipRegex` will find the end of a regular expression in the given string.\n\nThe returned value is the position of the character following the regex, or `start+1` if the slash does not start a regex.\n\n## Example\n\nThis is a silly example, but it will give the idea.\n\n```js\nimport skipRegex from 'skip-regex'\n\nconst source = ' /.*/ '\nconst start = source.indexOf('/')\n\nif (~start) {\n const end = skipRegex(source, start)\n\n if (end > start + 1) { // detected as regex?\n const regex = source.slice(start, end)\n console.log(`Found regex ${regex} at position ${start}!`)\n\n } else if (source[end] === '*' || source[end] === '/') {\n console.log('The slash starts a JS comment.')\n\n } else {\n console.log('The slash is a division sign.')\n }\n}\n```\n\nFor something more complete see the [js-cleanup](https://github.com/aMarCruz/js-cleanup) code, an utility to clean comments safely in JS-like sources, which uses skip-regex to skip regular expressions.\n\nFor Rollup, you can use [rollup-plugin-node-resolve](https://github.com/rollup/rollup-plugin-node-resolve) to resolve 'skip-regex' as an ES6 module.\n\nFor TypeScript, enable `esModuleInterop` in your tsconfig.json _or_ use the `\"import=require\"` syntax:\n\n```ts\nimport skipRegex = require('skip-regex')\n\n//...\n```\n\n## Related Links\n\nSome sites and tools that have been helpful:\n\n- [RegExp (Regular Expressions) Objects](https://www.ecma-international.org/ecma-262/9.0/index.html#sec-regexp-regular-expression-objects) : ECMA Specs\n- [RegExp on MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp) : MDN Reference\n- [RegEgg](http://www.rexegg.com/) : Complete tutorial, various regex dialects\n- [RegExr](https://regexr.com/) : Online tool for learn and test regexes\n- [RegExp Preview and Editor](https://marketplace.visualstudio.com/items?itemName=le0zh.vscode-regexp-preivew) : VSCode extension based on regexper-static\n\n## Support my Work\n\nI'm a full-stack developer with more than 20 year of experience and I try to share most of my work for free and help others, but this takes a significant amount of time and effort so, if you like my work, please consider...\n\n<!-- markdownlint-disable MD033 -->\n[<img src=\"https://amarcruz.github.io/images/kofi_blue.png\" height=\"36\" title=\"Support Me on Ko-fi\" />][kofi-url]\n<!-- markdownlint-enable MD033 -->\n\nOf course, feedback, PRs, and stars are also welcome 🙃\n\nThanks for your support!\n\n## Licence\n\nThe [MIT license](LICENSE) (MIT)\n\n&copy; 2018 Alberto Martínez\n\n[npm-badge]: https://badgen.net/npm/v/skip-regex\n[npm-url]: https://www.npmjs.com/package/skip-regex\n[license-badge]: https://badgen.net/npm/license/skip-regex\n[license-url]: https://github.com/aMarCruz/skip-regex/blob/master/LICENSE\n[travis-badge]: https://travis-ci.org/aMarCruz/skip-regex.svg?branch=master\n[travis-url]: https://travis-ci.org/aMarCruz/skip-regex\n[codecov-badge]: https://codecov.io/gh/aMarCruz/skip-regex/branch/master/graph/badge.svg\n[codecov-url]: https://codecov.io/gh/aMarCruz/skip-regex\n[size-badge]: https://badgen.net/bundlephobia/min/skip-regex\n[size-url]: https://bundlephobia.com/result?p=skip-regex\n[kofi-url]: https://ko-fi.com/C0C7LF7I\n",
396 "maintainers": [
397 {
398 "name": "amarcruz",
399 "email": "[email protected]"
400 }
401 ],
402 "time": {
403 "modified": "2018-12-24T09:48:44.435Z",
404 "created": "2017-06-22T12:44:11.315Z",
405 "0.2.0": "2017-06-22T12:44:11.315Z",
406 "0.3.0": "2017-07-04T18:41:34.781Z",
407 "0.3.1": "2017-10-19T21:02:54.041Z",
408 "1.0.0": "2018-12-21T07:02:10.751Z",
409 "1.0.1": "2018-12-21T07:12:14.844Z",
410 "1.0.2": "2018-12-24T09:48:40.246Z"
411 },
412 "homepage": "https://github.com/aMarCruz/skip-regex",
413 "keywords": [
414 "javascript",
415 "typescript",
416 "es6",
417 "micro",
418 "parser",
419 "detection",
420 "regex",
421 "regexp"
422 ],
423 "repository": {
424 "type": "git",
425 "url": "git+https://github.com/aMarCruz/skip-regex.git"
426 },
427 "author": {
428 "name": "aMarCruz",
429 "email": "[email protected]"
430 },
431 "bugs": {
432 "url": "https://github.com/aMarCruz/skip-regex/issues"
433 },
434 "license": "MIT",
435 "readmeFilename": "README.md",
436 "users": {
437 "amarcruz": true
438 }
439 }