Debian Codegraph @

workspaces/arborist/test/fixtures/registry-mocks/content/preserve.json

raw
1 {
2 "_id": "preserve",
3 "_rev": "10-9beba69a909ff4e0fb9a9b0b976430b2",
4 "name": "preserve",
5 "description": "Temporarily substitute tokens in the given `string` with placeholders, then put them back after transforming the string.",
6 "dist-tags": {
7 "latest": "0.2.0"
8 },
9 "versions": {
10 "0.1.0": {
11 "name": "preserve",
12 "description": "Temporarily subsitute tokens in the given `string` with placeholders, then put them back after transforming the string.",
13 "version": "0.1.0",
14 "homepage": "https://github.com/jonschlinkert/preserve",
15 "author": {
16 "name": "Jon Schlinkert",
17 "url": "https://github.com/jonschlinkert"
18 },
19 "repository": {
20 "type": "git",
21 "url": "git://github.com/jonschlinkert/preserve.git"
22 },
23 "bugs": {
24 "url": "https://github.com/jonschlinkert/preserve/issues"
25 },
26 "licenses": [
27 {
28 "type": "MIT",
29 "url": "https://github.com/jonschlinkert/preserve/blob/master/LICENSE-MIT"
30 }
31 ],
32 "main": "index.js",
33 "engines": {
34 "node": ">=0.10.0"
35 },
36 "scripts": {
37 "test": "mocha -R spec"
38 },
39 "devDependencies": {
40 "js-beautify": "^1.5.4",
41 "mocha": "*",
42 "verb": ">= 0.2.6",
43 "verb-tag-jscomments": ">= 0.2.0"
44 },
45 "keywords": [
46 "docs",
47 "documentation",
48 "generate",
49 "generator",
50 "markdown",
51 "templates",
52 "verb"
53 ],
54 "_id": "[email protected]",
55 "_shasum": "a6bed49859eeab4238d186ed410f4008f9606747",
56 "_from": ".",
57 "_npmVersion": "1.4.9",
58 "_npmUser": {
59 "name": "jonschlinkert",
60 "email": "[email protected]"
61 },
62 "maintainers": [
63 {
64 "name": "jonschlinkert",
65 "email": "[email protected]"
66 }
67 ],
68 "dist": {
69 "shasum": "a6bed49859eeab4238d186ed410f4008f9606747",
70 "tarball": "https://registry.npmjs.org/preserve/-/preserve-0.1.0.tgz"
71 },
72 "directories": {}
73 },
74 "0.1.1": {
75 "name": "preserve",
76 "description": "Temporarily substitute tokens in the given `string` with placeholders, then put them back after transforming the string.",
77 "version": "0.1.1",
78 "homepage": "https://github.com/jonschlinkert/preserve",
79 "author": {
80 "name": "Jon Schlinkert",
81 "url": "https://github.com/jonschlinkert"
82 },
83 "repository": {
84 "type": "git",
85 "url": "git://github.com/jonschlinkert/preserve.git"
86 },
87 "bugs": {
88 "url": "https://github.com/jonschlinkert/preserve/issues"
89 },
90 "licenses": [
91 {
92 "type": "MIT",
93 "url": "https://github.com/jonschlinkert/preserve/blob/master/LICENSE-MIT"
94 }
95 ],
96 "main": "index.js",
97 "engines": {
98 "node": ">=0.10.0"
99 },
100 "scripts": {
101 "test": "mocha -R spec"
102 },
103 "devDependencies": {
104 "js-beautify": "^1.5.4",
105 "mocha": "*",
106 "verb": ">= 0.2.6",
107 "verb-tag-jscomments": ">= 0.2.0"
108 },
109 "keywords": [
110 "docs",
111 "documentation",
112 "generate",
113 "generator",
114 "markdown",
115 "templates",
116 "verb"
117 ],
118 "_id": "[email protected]",
119 "_shasum": "dea4d29644a0d9dceebbe0e93c3a763af49233f1",
120 "_from": ".",
121 "_npmVersion": "1.4.9",
122 "_npmUser": {
123 "name": "jonschlinkert",
124 "email": "[email protected]"
125 },
126 "maintainers": [
127 {
128 "name": "jonschlinkert",
129 "email": "[email protected]"
130 }
131 ],
132 "dist": {
133 "shasum": "dea4d29644a0d9dceebbe0e93c3a763af49233f1",
134 "tarball": "https://registry.npmjs.org/preserve/-/preserve-0.1.1.tgz"
135 },
136 "directories": {}
137 },
138 "0.1.2": {
139 "name": "preserve",
140 "description": "Temporarily substitute tokens in the given `string` with placeholders, then put them back after transforming the string.",
141 "version": "0.1.2",
142 "homepage": "https://github.com/jonschlinkert/preserve",
143 "author": {
144 "name": "Jon Schlinkert",
145 "url": "https://github.com/jonschlinkert"
146 },
147 "repository": {
148 "type": "git",
149 "url": "git://github.com/jonschlinkert/preserve.git"
150 },
151 "bugs": {
152 "url": "https://github.com/jonschlinkert/preserve/issues"
153 },
154 "licenses": [
155 {
156 "type": "MIT",
157 "url": "https://github.com/jonschlinkert/preserve/blob/master/LICENSE-MIT"
158 }
159 ],
160 "main": "index.js",
161 "engines": {
162 "node": ">=0.10.0"
163 },
164 "scripts": {
165 "test": "mocha -R spec"
166 },
167 "devDependencies": {
168 "js-beautify": "^1.5.4",
169 "mocha": "*",
170 "verb": "^0.2.6",
171 "verb-tag-jscomments": "^0.2.0"
172 },
173 "keywords": [
174 "replace",
175 "placeholders",
176 "placeholder",
177 "token",
178 "tokens",
179 "regex",
180 "escape",
181 "template",
182 "format",
183 "prettify",
184 "markdown",
185 "templates",
186 "verb"
187 ],
188 "_id": "[email protected]",
189 "_shasum": "792d62a5dc22a6fb374aeb1dc531f869d79587ed",
190 "_from": ".",
191 "_npmVersion": "1.4.9",
192 "_npmUser": {
193 "name": "jonschlinkert",
194 "email": "[email protected]"
195 },
196 "maintainers": [
197 {
198 "name": "jonschlinkert",
199 "email": "[email protected]"
200 }
201 ],
202 "dist": {
203 "shasum": "792d62a5dc22a6fb374aeb1dc531f869d79587ed",
204 "tarball": "https://registry.npmjs.org/preserve/-/preserve-0.1.2.tgz"
205 },
206 "directories": {}
207 },
208 "0.1.3": {
209 "name": "preserve",
210 "description": "Temporarily substitute tokens in the given `string` with placeholders, then put them back after transforming the string.",
211 "version": "0.1.3",
212 "homepage": "https://github.com/jonschlinkert/preserve",
213 "author": {
214 "name": "Jon Schlinkert",
215 "url": "https://github.com/jonschlinkert"
216 },
217 "repository": {
218 "type": "git",
219 "url": "git://github.com/jonschlinkert/preserve.git"
220 },
221 "bugs": {
222 "url": "https://github.com/jonschlinkert/preserve/issues"
223 },
224 "licenses": [
225 {
226 "type": "MIT",
227 "url": "https://github.com/jonschlinkert/preserve/blob/master/LICENSE-MIT"
228 }
229 ],
230 "main": "index.js",
231 "engines": {
232 "node": ">=0.10.0"
233 },
234 "scripts": {
235 "test": "mocha -R spec"
236 },
237 "devDependencies": {
238 "js-beautify": "^1.5.4",
239 "mocha": "*",
240 "should": "^4.1.0",
241 "verb": "^0.2.6",
242 "verb-tag-jscomments": "^0.2.0"
243 },
244 "keywords": [
245 "escape",
246 "format",
247 "placeholder",
248 "placeholders",
249 "prettify",
250 "regex",
251 "replace",
252 "template",
253 "templates",
254 "token",
255 "tokens",
256 "verb"
257 ],
258 "_id": "[email protected]",
259 "_shasum": "91fb3572a2df3ed45a93b8c986a0eab372b39723",
260 "_from": ".",
261 "_npmVersion": "1.4.9",
262 "_npmUser": {
263 "name": "jonschlinkert",
264 "email": "[email protected]"
265 },
266 "maintainers": [
267 {
268 "name": "jonschlinkert",
269 "email": "[email protected]"
270 }
271 ],
272 "dist": {
273 "shasum": "91fb3572a2df3ed45a93b8c986a0eab372b39723",
274 "tarball": "https://registry.npmjs.org/preserve/-/preserve-0.1.3.tgz"
275 },
276 "directories": {}
277 },
278 "0.2.0": {
279 "name": "preserve",
280 "description": "Temporarily substitute tokens in the given `string` with placeholders, then put them back after transforming the string.",
281 "version": "0.2.0",
282 "homepage": "https://github.com/jonschlinkert/preserve",
283 "author": {
284 "name": "Jon Schlinkert",
285 "url": "https://github.com/jonschlinkert"
286 },
287 "repository": {
288 "type": "git",
289 "url": "git://github.com/jonschlinkert/preserve.git"
290 },
291 "bugs": {
292 "url": "https://github.com/jonschlinkert/preserve/issues"
293 },
294 "license": {
295 "type": "MIT",
296 "url": "https://github.com/jonschlinkert/preserve/blob/master/LICENSE-MIT"
297 },
298 "main": "index.js",
299 "engines": {
300 "node": ">=0.10.0"
301 },
302 "scripts": {
303 "test": "mocha -R spec"
304 },
305 "devDependencies": {
306 "benchmarked": "^0.1.3",
307 "chalk": "^0.5.1",
308 "js-beautify": "^1.5.4",
309 "mocha": "*",
310 "should": "*"
311 },
312 "keywords": [
313 "escape",
314 "format",
315 "placeholder",
316 "placeholders",
317 "prettify",
318 "regex",
319 "replace",
320 "template",
321 "templates",
322 "token",
323 "tokens"
324 ],
325 "gitHead": "1bf405d35e4aea06a2ee83db2d34dc54abc0a1f9",
326 "_id": "[email protected]",
327 "_shasum": "815ed1f6ebc65926f865b310c0713bcb3315ce4b",
328 "_from": ".",
329 "_npmVersion": "1.4.23",
330 "_npmUser": {
331 "name": "jonschlinkert",
332 "email": "[email protected]"
333 },
334 "maintainers": [
335 {
336 "name": "jonschlinkert",
337 "email": "[email protected]"
338 }
339 ],
340 "dist": {
341 "shasum": "815ed1f6ebc65926f865b310c0713bcb3315ce4b",
342 "tarball": "https://registry.npmjs.org/preserve/-/preserve-0.2.0.tgz"
343 },
344 "directories": {}
345 }
346 },
347 "readme": "# preserve [![NPM version](https://badge.fury.io/js/preserve.svg)](http://badge.fury.io/js/preserve)\n\n> Temporarily substitute tokens in the given `string` with placeholders, then put them back after transforming the string.\n\nUseful for protecting tokens, like templates in HTML, from being mutated when the string is transformed in some way, like from a formatter/beautifier.\n\n**Example without `preserve`**\n\nLet's say you want to use [js-beautify] on a string of html with Lo-Dash/Underscore templates, such as: `<ul><li><%= name %></li></ul>`:\n\njs-beautify will render the template unusable (and apply incorrect formatting because of the unfamiliar syntax from the Lo-Dash template):\n\n```html\n<ul>\n <li>\n <%=n ame %>\n </li>\n</ul>\n```\n\n**Example with `preserve`**\n\nCorrect.\n\n```html\n<ul>\n <li><%= name %></li>\n</ul>\n```\n\nFor the record, this is just a random example, I've had very few issues with js-beautify in general. But with or without js-beautify, this kind of token mangling does happen sometimes when you use formatters, beautifiers or similar tools.\n\n## Install\n## Install with [npm](npmjs.org)\n\n```bash\nnpm i preserve --save\n```\n\n## Run tests\n\n```bash\nnpm test\n```\n\n## API\n### [.before](index.js#L23)\n\nReplace tokens in `str` with a temporary, heuristic placeholder.\n\n* `str` **{String}** \n* `returns` **{String}**: String with placeholders. \n\n```js\ntokens.before('{a\\\\,b}');\n//=> '{__ID1__}'\n```\n\n### [.after](index.js#L44)\n\nReplace placeholders in `str` with original tokens.\n\n* `str` **{String}**: String with placeholders \n* `returns` **{String}** `str`: String with original tokens. \n\n```js\ntokens.after('{__ID1__}');\n//=> '{a\\\\,b}'\n```\n\n\n## Contributing\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/preserve/issues)\n\n## Author\n\n**Jon Schlinkert**\n \n+ [github/jonschlinkert](https://github.com/jonschlinkert)\n+ [twitter/jonschlinkert](http://twitter.com/jonschlinkert) \n\n## License\nCopyright (c) 2015-2015, Jon Schlinkert.\nReleased under the MIT license\n\n***\n\n_This file was generated by [verb](https://github.com/assemble/verb) on January 10, 2015._\n\n[js-beautify]: https://github.com/beautify-web/js-beautify",
348 "maintainers": [
349 {
350 "name": "jonschlinkert",
351 "email": "[email protected]"
352 }
353 ],
354 "time": {
355 "modified": "2015-01-10T22:29:38.220Z",
356 "created": "2014-11-01T06:23:53.748Z",
357 "0.1.0": "2014-11-01T06:23:53.748Z",
358 "0.1.1": "2014-11-01T06:25:27.114Z",
359 "0.1.2": "2014-11-01T07:19:37.164Z",
360 "0.1.3": "2014-11-01T07:37:05.542Z",
361 "0.2.0": "2015-01-10T22:29:38.220Z"
362 },
363 "homepage": "https://github.com/jonschlinkert/preserve",
364 "keywords": [
365 "escape",
366 "format",
367 "placeholder",
368 "placeholders",
369 "prettify",
370 "regex",
371 "replace",
372 "template",
373 "templates",
374 "token",
375 "tokens"
376 ],
377 "repository": {
378 "type": "git",
379 "url": "git://github.com/jonschlinkert/preserve.git"
380 },
381 "author": {
382 "name": "Jon Schlinkert",
383 "url": "https://github.com/jonschlinkert"
384 },
385 "bugs": {
386 "url": "https://github.com/jonschlinkert/preserve/issues"
387 },
388 "readmeFilename": "README.md",
389 "license": {
390 "type": "MIT",
391 "url": "https://github.com/jonschlinkert/preserve/blob/master/LICENSE-MIT"
392 },
393 "_attachments": {}
394 }