-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
56 lines (56 loc) · 3.42 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
{
"name": "bson",
"description": "A bson parser for node.js and the browser",
"keywords": [
"mongodb",
"bson",
"parser"
],
"version": "0.2.2",
"author": {
"name": "Christian Amor Kvalheim",
"email": "christkv@gmail.com"
},
"contributors": [],
"repository": {
"type": "git",
"url": "git://github.com/mongodb/js-bson.git"
},
"bugs": {
"url": "https://github.com/mongodb/js-bson/issues"
},
"devDependencies": {
"nodeunit": "0.7.3",
"gleak": "0.2.3",
"one": "2.X.X"
},
"config": {
"native": false
},
"main": "./lib/bson/index",
"directories": {
"lib": "./lib/bson"
},
"engines": {
"node": ">=0.6.19"
},
"scripts": {
"install": "(node-gyp rebuild 2> builderror.log) || (exit 0)",
"test": "nodeunit ./test/node && TEST_NATIVE=TRUE nodeunit ./test/node"
},
"licenses": [
{
"type": "Apache License, Version 2.0",
"url": "http://www.apache.org/licenses/LICENSE-2.0"
}
],
"readme": "Javascript + C++ BSON parser\n============================\n\nThis BSON parser is primarily meant for usage with the `mongodb` node.js driver. However thanks to such wonderful tools at `onejs` we are able to package up a BSON parser that will work in the browser aswell. The current build is located in the `browser_build/bson.js` file.\n\nA simple example on how to use it\n\n <head>\n <script src=\"https://raw.github.com/mongodb/js-bson/master/browser_build/bson.js\">\n </script>\n </head>\n <body onload=\"start();\">\n <script>\n function start() {\n var BSON = bson().BSON;\n var Long = bson().Long;\n\n var doc = {long: Long.fromNumber(100)}\n\n // Serialize a document\n var data = BSON.serialize(doc, false, true, false);\n // De serialize it again\n var doc_2 = BSON.deserialize(data);\n }\n </script>\n </body>\n\n It's got two simple methods to use in your application.\n\n * BSON.serialize(object, checkKeys, asBuffer, serializeFunctions)\n * @param {Object} object the Javascript object to serialize.\n * @param {Boolean} checkKeys the serializer will check if keys are valid.\n * @param {Boolean} asBuffer return the serialized object as a Buffer object **(ignore)**.\n * @param {Boolean} serializeFunctions serialize the javascript functions **(default:false)**\n * @return {TypedArray/Array} returns a TypedArray or Array depending on what your browser supports\n \n * BSON.deserialize(buffer, options, isArray)\n * Options\n * **evalFunctions** {Boolean, default:false}, evaluate functions in the BSON document scoped to the object deserialized.\n * **cacheFunctions** {Boolean, default:false}, cache evaluated functions for reuse.\n * **cacheFunctionsCrc32** {Boolean, default:false}, use a crc32 code for caching, otherwise use the string of the function.\n * @param {TypedArray/Array} a TypedArray/Array containing the BSON data\n * @param {Object} [options] additional options used for the deserialization.\n * @param {Boolean} [isArray] ignore used for recursive parsing.\n * @return {Object} returns the deserialized Javascript Object.\n",
"readmeFilename": "README.md",
"homepage": "https://github.com/mongodb/js-bson",
"_id": "bson@0.2.2",
"dist": {
"shasum": "bbf6de5c7d5a48072a9c3ee07afb33cb496a7404"
},
"_from": "bson@0.2.2",
"_resolved": "https://registry.npmjs.org/bson/-/bson-0.2.2.tgz"
}