exantrius / bson.js

The BSON implementation for browsers and server-side

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

bson.js

The BSON implementation for browsers and server-side

Getting Started

On the server

Install the module with: npm install bson.js

var bson_js = require('bson.js');
bson_js.awesome(); // "awesome"

In the browser

Download the production version or the development version.

In your web page:

<script src="dist/bson.js.min.js"></script>
<script>
awesome(); // "awesome"
</script>

In your code, you can attach bson.js's methods to any object.

<script>
this.exports = Bocoup.utils;
</script>
<script src="dist/bson.js.min.js"></script>
<script>
Bocoup.utils.awesome(); // "awesome"
</script>

Documentation

(Coming soon)

Examples

(Coming soon)

Contributing

In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using grunt.

Also, please don't edit files in the "dist" subdirectory as they are generated via grunt. You'll find source code in the "lib" subdirectory!

Release History

(Nothing yet)

License

Copyright (c) 2012 Andrew Sednev
Licensed under the MIT license.

About

The BSON implementation for browsers and server-side

License:MIT License


Languages

Language:JavaScript 100.0%