***regexp:** properly construct new BSONRegExp when constructor called without new ([#242](https://github.com/mongodb/js-bson/issues/242)) ([93ae799](https://github.com/mongodb/js-bson/commit/93ae799))

BSON is short for Bin­ary JSON and is the bin­ary-en­coded seri­al­iz­a­tion of JSON-like doc­u­ments. You can learn more about it in [the specification](http://bsonspec.org).

BSON is short for Bin­ary JSON and is the bin­ary-en­coded seri­al­iz­a­tion of JSON-like doc­u­ments. You can learn more about it in [the specification](http://bsonspec.org).

This browser version of the BSON parser is compiled using [rollup](https://rollupjs.org/) and the current version is pre-compiled in the `dist` directory.

This browser version of the BSON parser is compiled using [webpack](https://webpack.js.org/) and the current version is pre-compiled in the `browser_build` directory.

This is the default BSON parser, however, there is a C++ Node.js addon version as well that does not support the browser. It can be found at [mongod-js/bson-ext](https://github.com/mongodb-js/bson-ext).

This is the default BSON parser, however, there is a C++ Node.js addon version as well that does not support the browser. It can be found at [mongod-js/bson-ext](https://github.com/mongodb-js/bson-ext).

...

@@ -18,7 +18,7 @@ npm run build

...

@@ -18,7 +18,7 @@ npm run build

A simple example of how to use BSON in the browser:

A simple example of how to use BSON in the browser:

```html

```html

<script src="./dist/bson.js"></script>

<script src="./browser_build/bson.js"></script>

<script>

<script>

functionstart(){

functionstart(){

...

@@ -68,7 +68,9 @@ console.log('doc_2:', doc_2)

...

@@ -68,7 +68,9 @@ console.log('doc_2:', doc_2)

### BSON types

### BSON types

For all BSON types documentation, please refer to the documentation for the [MongoDB Node.js driver](https://github.com/mongodb/node-mongodb-native).

For all BSON types documentation, please refer to the following sources: