Debian Codegraph @

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

raw
1 {
2 "_id": "prr",
3 "_rev": "8-f95632b8c11e433840694a6124d7a71e",
4 "name": "prr",
5 "description": "A better Object.defineProperty()",
6 "dist-tags": {
7 "latest": "1.0.1"
8 },
9 "versions": {
10 "0.0.0": {
11 "name": "prr",
12 "description": "A better Object.defineProperty()",
13 "version": "0.0.0",
14 "homepage": "https://github.com/rvagg/prr",
15 "authors": [
16 "Rod Vagg <[email protected]> (https://github.com/rvagg)"
17 ],
18 "keywords": [
19 "property",
20 "properties",
21 "defineProperty",
22 "ender"
23 ],
24 "main": "./prr.js",
25 "repository": {
26 "type": "git",
27 "url": "https://github.com/rvagg/prr.git"
28 },
29 "dependencies": {},
30 "devDependencies": {
31 "tap": "*"
32 },
33 "scripts": {
34 "test": "node ./test.js"
35 },
36 "license": "MIT",
37 "_id": "[email protected]",
38 "dist": {
39 "shasum": "1a84b85908325501411853d0081ee3fa86e2926a",
40 "tarball": "https://registry.npmjs.org/prr/-/prr-0.0.0.tgz"
41 },
42 "_from": ".",
43 "_npmVersion": "1.2.15",
44 "_npmUser": {
45 "name": "rvagg",
46 "email": "[email protected]"
47 },
48 "maintainers": [
49 {
50 "name": "rvagg",
51 "email": "[email protected]"
52 }
53 ],
54 "directories": {}
55 },
56 "1.0.0": {
57 "name": "prr",
58 "description": "A better Object.defineProperty()",
59 "version": "1.0.0",
60 "homepage": "https://github.com/rvagg/prr",
61 "author": {
62 "name": "Rod Vagg",
63 "email": "[email protected]",
64 "url": "https://github.com/rvagg"
65 },
66 "keywords": [
67 "property",
68 "properties",
69 "defineProperty",
70 "ender"
71 ],
72 "main": "./prr.js",
73 "repository": {
74 "type": "git",
75 "url": "https://github.com/rvagg/prr.git"
76 },
77 "dependencies": {},
78 "devDependencies": {
79 "tap": "*"
80 },
81 "scripts": {
82 "test": "node ./test.js"
83 },
84 "license": "MIT",
85 "gitHead": "1e29e003b01b3ce877c2b81f2dd0b102a789aa06",
86 "bugs": {
87 "url": "https://github.com/rvagg/prr/issues"
88 },
89 "_id": "[email protected]",
90 "_shasum": "1301fbed1f9f92414e988eda0c0afdb85ae9d402",
91 "_from": ".",
92 "_npmVersion": "1.4.14",
93 "_npmUser": {
94 "name": "rvagg",
95 "email": "[email protected]"
96 },
97 "maintainers": [
98 {
99 "name": "rvagg",
100 "email": "[email protected]"
101 }
102 ],
103 "dist": {
104 "shasum": "1301fbed1f9f92414e988eda0c0afdb85ae9d402",
105 "tarball": "https://registry.npmjs.org/prr/-/prr-1.0.0.tgz"
106 },
107 "directories": {}
108 },
109 "1.0.1": {
110 "name": "prr",
111 "description": "A better Object.defineProperty()",
112 "version": "1.0.1",
113 "homepage": "https://github.com/rvagg/prr",
114 "author": {
115 "name": "Rod Vagg",
116 "email": "[email protected]",
117 "url": "https://github.com/rvagg"
118 },
119 "keywords": [
120 "property",
121 "properties",
122 "defineProperty",
123 "ender"
124 ],
125 "main": "./prr.js",
126 "repository": {
127 "type": "git",
128 "url": "https://github.com/rvagg/prr.git"
129 },
130 "dependencies": {},
131 "devDependencies": {
132 "tap": "*"
133 },
134 "scripts": {
135 "test": "node ./test.js"
136 },
137 "license": "MIT",
138 "gitHead": "b69ba0edc7aacbda0c98d550579e452b8597c126",
139 "bugs": {
140 "url": "https://github.com/rvagg/prr/issues"
141 },
142 "_id": "[email protected]",
143 "_shasum": "d3fc114ba06995a45ec6893f484ceb1d78f5f476",
144 "_from": ".",
145 "_npmVersion": "1.4.14",
146 "_npmUser": {
147 "name": "rvagg",
148 "email": "[email protected]"
149 },
150 "maintainers": [
151 {
152 "name": "rvagg",
153 "email": "[email protected]"
154 }
155 ],
156 "dist": {
157 "shasum": "d3fc114ba06995a45ec6893f484ceb1d78f5f476",
158 "tarball": "https://registry.npmjs.org/prr/-/prr-1.0.1.tgz"
159 },
160 "directories": {}
161 }
162 },
163 "readme": "# prr [![Build Status](https://secure.travis-ci.org/rvagg/prr.png)](http://travis-ci.org/rvagg/prr)\n\nAn sensible alternative to `Object.defineProperty()`. Available in npm and Ender as **prr**.\n\n## Usage\n\nSet the property `'foo'` (`obj.foo`) to have the value `'bar'` with default options (`'enumerable'`, `'configurable'` and `'writable'` are all `false`):\n\n```js\nprr(obj, 'foo', 'bar')\n```\n\nAdjust the default options:\n\n```js\nprr(obj, 'foo', 'bar', { enumerable: true, writable: true })\n```\n\nDo the same operation for multiple properties:\n\n```js\nprr(obj, { one: 'one', two: 'two' })\n// or with options:\nprr(obj, { one: 'one', two: 'two' }, { enumerable: true, writable: true })\n```\n\n### Simplify!\n\nBut obviously, having to write out the full options object makes it nearly as bad as the original `Object.defineProperty()` so we can simplify.\n\nAs an alternative method we can use an options string where each character represents a option: `'e'=='enumerable'`, `'c'=='configurable'` and `'w'=='writable'`:\n\n```js\nprr(obj, 'foo', 'bar', 'ew') // enumerable and writable but not configurable\n// muliple properties:\nprr(obj, { one: 'one', two: 'two' }, 'ewc') // configurable too\n```\n\n## Where can I use it?\n\nAnywhere! For pre-ES5 environments *prr* will simply fall-back to an `object[property] = value` so you can get close to what you want.\n\n*prr* is Ender-compatible so you can include it in your Ender build and `$.prr(...)` or `var prr = require('prr'); prr(...)`.\n\n## Licence\n\nprr is Copyright (c) 2013 Rod Vagg [@rvagg](https://twitter.com/rvagg) and licensed under the MIT licence. All rights not explicitly granted in the MIT license are reserved. See the included LICENSE.md file for more details.\n",
164 "maintainers": [
165 {
166 "name": "rvagg",
167 "email": "[email protected]"
168 }
169 ],
170 "time": {
171 "modified": "2017-01-08T05:15:41.845Z",
172 "created": "2013-04-01T17:21:27.562Z",
173 "0.0.0": "2013-04-01T17:21:30.886Z",
174 "1.0.0": "2014-06-29T07:19:44.640Z",
175 "1.0.1": "2014-07-22T06:50:49.598Z"
176 },
177 "repository": {
178 "type": "git",
179 "url": "https://github.com/rvagg/prr.git"
180 },
181 "homepage": "https://github.com/rvagg/prr",
182 "keywords": [
183 "property",
184 "properties",
185 "defineProperty",
186 "ender"
187 ],
188 "author": {
189 "name": "Rod Vagg",
190 "email": "[email protected]",
191 "url": "https://github.com/rvagg"
192 },
193 "bugs": {
194 "url": "https://github.com/rvagg/prr/issues"
195 },
196 "license": "MIT",
197 "readmeFilename": "README.md",
198 "users": {
199 "tungv": true
200 },
201 "_attachments": {}
202 }