Converts BSON into JSON (or CSON) and vice versa
bson-converter from Atom's Package Manager or the command-line equivalent:
$ apm install bson-converter
Change to your Atom packages directory:
# Windows $ cd %USERPROFILE%\.atom\packages # Linux & macOS $ cd ~/.atom/packages/
Clone the repository as
$ git clone https://github.com/idleberg/atom-bson-converter bson-converter
cd bson-converter && npm install
Once installed, two commands are exposed to the command palette:
BSON: Encode– encodes JSON and CSON into BSON
BSON: Decode– decodes BSON into JSON or CSON
You can tweak the behavior by adjusting the many options available in the package settings.
The following examples use the macOS keyboard shortcuts. On Linux or Windows use Shift+Super as modifier key
Memorizing the keyboard shortcuts for conversion is easy. Just think of the B key for BSON, the J key for JSON:
|BSON to JSON (or CSON)||“B to J”||Ctrl+Cmd+B, Ctrl+Cmd+J|
|JSON (or CSON) to BSON||“J to B”||Ctrl+Cmd+J, Ctrl+Cmd+B|
This work is licensed under the The MIT License.
You are welcome support this project using Flattr or Bitcoin
Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.