Debian Codegraph @

workspaces/arborist/test/fixtures/registry-mocks/content/dns-txt.json

raw
1 {
2 "_id": "dns-txt",
3 "_rev": "2-97ac992b6b25c4711cd76709742ffa30",
4 "name": "dns-txt",
5 "description": "Encode/decode DNS-SD TXT record RDATA fields",
6 "dist-tags": {
7 "latest": "2.0.2"
8 },
9 "versions": {
10 "2.0.1": {
11 "name": "dns-txt",
12 "version": "2.0.1",
13 "description": "Encode/decode DNS-SD TXT record RDATA fields",
14 "main": "index.js",
15 "dependencies": {
16 "buffer-indexof": "^1.0.0"
17 },
18 "devDependencies": {
19 "tape": "^4.2.2",
20 "standard": "^5.3.1"
21 },
22 "scripts": {
23 "test": "standard && tape test.js"
24 },
25 "repository": {
26 "type": "git",
27 "url": "git+https://github.com/watson/dns-txt.git"
28 },
29 "keywords": [
30 "rfc6763",
31 "6763",
32 "rfc6762",
33 "6762",
34 "dns",
35 "mdns",
36 "multicast",
37 "txt",
38 "rdata",
39 "dns-sd",
40 "encode",
41 "decode",
42 "parse",
43 "encoder",
44 "decoder",
45 "parser",
46 "service",
47 "discovery"
48 ],
49 "author": {
50 "name": "Thomas Watson Steen",
51 "email": "[email protected]",
52 "url": "https://twitter.com/wa7son"
53 },
54 "license": "MIT",
55 "bugs": {
56 "url": "https://github.com/watson/dns-txt/issues"
57 },
58 "homepage": "https://github.com/watson/dns-txt",
59 "coordinates": [
60 55.6665557,
61 12.5801645
62 ],
63 "gitHead": "b0fc6f0ef22c9789e9e378ff0262e23feb789b8a",
64 "_id": "[email protected]",
65 "_shasum": "8ea16313f4b59ee9d2cfc8f64be413b25e227a4e",
66 "_from": ".",
67 "_npmVersion": "2.14.7",
68 "_nodeVersion": "4.2.2",
69 "_npmUser": {
70 "name": "watson",
71 "email": "[email protected]"
72 },
73 "maintainers": [
74 {
75 "name": "watson",
76 "email": "[email protected]"
77 }
78 ],
79 "dist": {
80 "shasum": "8ea16313f4b59ee9d2cfc8f64be413b25e227a4e",
81 "tarball": "https://registry.npmjs.org/dns-txt/-/dns-txt-2.0.1.tgz"
82 },
83 "_npmOperationalInternal": {
84 "host": "packages-9-west.internal.npmjs.com",
85 "tmp": "tmp/dns-txt-2.0.1.tgz_1456770217606_0.9772624913603067"
86 },
87 "directories": {}
88 },
89 "2.0.2": {
90 "name": "dns-txt",
91 "version": "2.0.2",
92 "description": "Encode/decode DNS-SD TXT record RDATA fields",
93 "main": "index.js",
94 "dependencies": {
95 "buffer-indexof": "^1.0.0"
96 },
97 "devDependencies": {
98 "tape": "^4.2.2",
99 "standard": "^5.3.1"
100 },
101 "scripts": {
102 "test": "standard && tape test.js"
103 },
104 "repository": {
105 "type": "git",
106 "url": "git+https://github.com/watson/dns-txt.git"
107 },
108 "keywords": [
109 "rfc6763",
110 "6763",
111 "rfc6762",
112 "6762",
113 "dns",
114 "mdns",
115 "multicast",
116 "txt",
117 "rdata",
118 "dns-sd",
119 "encode",
120 "decode",
121 "parse",
122 "encoder",
123 "decoder",
124 "parser",
125 "service",
126 "discovery"
127 ],
128 "author": {
129 "name": "Thomas Watson Steen",
130 "email": "[email protected]",
131 "url": "https://twitter.com/wa7son"
132 },
133 "license": "MIT",
134 "bugs": {
135 "url": "https://github.com/watson/dns-txt/issues"
136 },
137 "homepage": "https://github.com/watson/dns-txt",
138 "coordinates": [
139 55.6465696,
140 12.5491067
141 ],
142 "gitHead": "8c48aed198f9eb1840e7d12c37a84fcba545c8fa",
143 "_id": "[email protected]",
144 "_shasum": "b91d806f5d27188e4ab3e7d107d881a1cc4642b6",
145 "_from": ".",
146 "_npmVersion": "2.14.7",
147 "_nodeVersion": "4.2.2",
148 "_npmUser": {
149 "name": "watson",
150 "email": "[email protected]"
151 },
152 "maintainers": [
153 {
154 "name": "watson",
155 "email": "[email protected]"
156 }
157 ],
158 "dist": {
159 "shasum": "b91d806f5d27188e4ab3e7d107d881a1cc4642b6",
160 "tarball": "https://registry.npmjs.org/dns-txt/-/dns-txt-2.0.2.tgz"
161 },
162 "_npmOperationalInternal": {
163 "host": "packages-12-west.internal.npmjs.com",
164 "tmp": "tmp/dns-txt-2.0.2.tgz_1461509147614_0.3867966157849878"
165 },
166 "directories": {}
167 }
168 },
169 "readme": "# dns-txt\n\nEncode or decode the RDATA field in multicast DNS TXT records. For use\nwith DNS-Based Service Discovery. For details see [RFC\n6763](https://tools.ietf.org/html/rfc6763).\n\n[![Build status](https://travis-ci.org/watson/dns-txt.svg?branch=master)](https://travis-ci.org/watson/dns-txt)\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](https://github.com/feross/standard)\n[![abstract-encoding](https://img.shields.io/badge/abstract--encoding-compliant-brightgreen.svg?style=flat)](https://github.com/mafintosh/abstract-encoding)\n\n## Installation\n\n```\nnpm install dns-txt\n```\n\n## Usage\n\n```js\nvar txt = require('dns-txt')()\n\nvar obj = {\n foo: 1,\n bar: 2\n}\n\nvar enc = txt.encode(obj) // <Buffer 05 66 6f 6f 3d 31 05 62 61 72 3d 32>\n\ntxt.decode(enc) // { foo: '1', bar: '2' }\n```\n\n## API\n\nThe encoder and decoder conforms to [RFC 6763](https://tools.ietf.org/html/rfc6763).\n\n### Initialize\n\nThe module exposes a constructor function which can be called with an\noptional options object:\n\n```js\nvar txt = require('dns-txt')({ binary: true })\n```\n\nThe options are:\n\n- `binary` - If set to `true` all values will be returned as `Buffer`\n objects. The default behavior is to turn all values into strings. But\n according to the RFC the values can be any binary data. If you expect\n binary data, use this option.\n\n#### `txt.encode(obj, [buffer], [offset])`\n\nTakes a key/value object and returns a buffer with the encoded TXT\nrecord. If a buffer is passed as the second argument the object should\nbe encoded into that buffer. Otherwise a new buffer should be allocated\nIf an offset is passed as the third argument the object should be\nencoded at that byte offset. The byte offset defaults to `0`.\n\nThis module does not actively validate the key/value pairs, but keep the\nfollowing in rules in mind:\n\n- To be RFC compliant, each key should conform with the rules as\n specified in [section\n 6.4](https://tools.ietf.org/html/rfc6763#section-6.4).\n\n- To be RFC compliant, each value should conform with the rules as\n specified in [section\n 6.5](https://tools.ietf.org/html/rfc6763#section-6.5).\n\nAfter encoding `txt.encode.bytes` is set to the amount of bytes used to\nencode the object.\n\n#### `txt.decode(buffer, [offset], [length])`\n\nTakes a buffer and returns a decoded key/value object. If an offset is\npassed as the second argument the object should be decoded from that\nbyte offset. The byte offset defaults to `0`. Note that all keys will be\nlowercased and all values will be Buffer objects.\n\nAfter decoding `txt.decode.bytes` is set to the amount of bytes used to\ndecode the object.\n\n#### `txt.encodingLength(obj)`\n\nTakes a single key/value object and returns the number of bytes that the given\nobject would require if encoded.\n\n## License\n\nMIT\n",
170 "maintainers": [
171 {
172 "name": "watson",
173 "email": "[email protected]"
174 }
175 ],
176 "time": {
177 "modified": "2016-04-24T14:45:50.069Z",
178 "created": "2016-02-29T18:23:41.106Z",
179 "2.0.1": "2016-02-29T18:23:41.106Z",
180 "2.0.2": "2016-04-24T14:45:50.069Z"
181 },
182 "homepage": "https://github.com/watson/dns-txt",
183 "keywords": [
184 "rfc6763",
185 "6763",
186 "rfc6762",
187 "6762",
188 "dns",
189 "mdns",
190 "multicast",
191 "txt",
192 "rdata",
193 "dns-sd",
194 "encode",
195 "decode",
196 "parse",
197 "encoder",
198 "decoder",
199 "parser",
200 "service",
201 "discovery"
202 ],
203 "repository": {
204 "type": "git",
205 "url": "git+https://github.com/watson/dns-txt.git"
206 },
207 "author": {
208 "name": "Thomas Watson Steen",
209 "email": "[email protected]",
210 "url": "https://twitter.com/wa7son"
211 },
212 "bugs": {
213 "url": "https://github.com/watson/dns-txt/issues"
214 },
215 "license": "MIT",
216 "readmeFilename": "README.md",
217 "_attachments": {}
218 }