-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
66 lines (66 loc) · 3.66 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
{
"name": "bops",
"version": "0.0.6",
"description": "buffer operations",
"main": "index.js",
"scripts": {
"test": "node test/index.js"
},
"browser": {
"./copy.js": "./typedarray/copy.js",
"./create.js": "./typedarray/create.js",
"./from.js": "./typedarray/from.js",
"./join.js": "./typedarray/join.js",
"./mapped.js": "./typedarray/mapped.js",
"./read.js": "./typedarray/read.js",
"./subarray.js": "./typedarray/subarray.js",
"./to.js": "./typedarray/to.js",
"./is.js": "./typedarray/is.js",
"./write.js": "./typedarray/write.js"
},
"repository": {
"type": "git",
"url": "git://github.com/chrisdickinson/bops.git"
},
"keywords": [
"buffer",
"operations",
"binary"
],
"author": {
"name": "Chris Dickinson",
"email": "chris@neversaw.us"
},
"license": "MIT",
"gitHead": "11f41e69b1ab4507027ac162981913b268445b4a",
"devDependencies": {
"tape": "~1.0.1"
},
"dependencies": {
"base64-js": "0.0.2",
"to-utf8": "0.0.1"
},
"testling": {
"files": "test/index.js",
"browsers": [
"ie/6..latest",
"chrome/20..latest",
"firefox/10..latest",
"safari/latest",
"opera/11.0..latest",
"iphone/6",
"ipad/6"
]
},
"readme": "# bops\n\nbuffer/typed array agnostic buffer operations.\n\n```javascript\nvar binary = require('bops')\n\nbinary.readUInt8(new Buffer(10), 0) // === 10\n\n```\n\nin browser, will default to using `Uint8Array` instances.\nin node, will default to using `Buffer` instances.\n\n## API\n\n> ## supported encodings\n> * utf8\n> * hex\n> * base64\n\n#### bops.from(str, encoding=\"utf8\") -> buf\n\ngiven a string (and optional encoding) return a native buffer instance.\nalso accepts arrays.\n\n#### bops.to(buf, encoding=\"utf8\") -> str\n\ngiven a native buffer (and optional encoding) return a string.\n\n#### bops.is(buf) -> bool\n\ngiven a native buffer returns true. Returns false for other values.\n\n#### bops.subarray(buf, start[, end]) -> buf\n\nreturn a view onto the original buffer.\n\n#### bops.join([buf, buf, buf]) -> buf\n\ncompile several buffers into a single buffer.\n\n#### bops.create(size) -> buf\n\ncreate a native buffer instance of `size`.\n\n#### bops.copy(source, target, target_start, source_start, source_end)\n\nperform a fast copy from one native buffer to another.\n\n#### readUInt8(buf, at)\n#### readInt8(buf, at)\n#### readUInt16LE(buf, at)\n#### readUInt32LE(buf, at)\n#### readInt8(buf, at)\n#### readInt16LE(buf, at)\n#### readInt32LE(buf, at)\n#### readFloatLE(buf, at)\n#### readDoubleLE(buf, at)\n#### readUInt16BE(buf, at)\n#### readUInt32BE(buf, at)\n#### readInt16BE(buf, at)\n#### readInt32BE(buf, at)\n#### readFloatBE(buf, at)\n#### readDoubleBE(buf, at)\n\nread a value from a buffer at a given byte offset.\n\n#### writeUInt8(buf, value, at)\n#### writeInt8(buf, value, at)\n#### writeUInt16LE(buf, value, at)\n#### writeUInt32LE(buf, value, at)\n#### writeInt8(buf, value, at)\n#### writeInt16LE(buf, value, at)\n#### writeInt32LE(buf, value, at)\n#### writeFloatLE(buf, value, at)\n#### writeDoubleLE(buf, value, at)\n#### writeUInt16BE(buf, value, at)\n#### writeUInt32BE(buf, value, at)\n#### writeInt16BE(buf, value, at)\n#### writeInt32BE(buf, value, at)\n#### writeFloatBE(buf, value, at)\n#### writeDoubleBE(buf, value, at)\n\nwrite a value to a buffer at a given byte offset.\n\n# License\n\nMIT\n",
"readmeFilename": "README.md",
"bugs": {
"url": "https://github.com/chrisdickinson/bops/issues"
},
"_id": "bops@0.0.6",
"dist": {
"shasum": "19cb63169ed66531e8a65e79941b940cb991636d"
},
"_from": "bops@0.0.6",
"_resolved": "https://registry.npmjs.org/bops/-/bops-0.0.6.tgz"
}