keyjson

1.0.1 • Public • Published

What is keyjson?

It's awesome. See keyjson.org

Installing

npm install keyjson

Usage / API

"Software using Semantic Versioning MUST declare a public API. [...]
However it is done, it should be precise and comprehensive."

"Version 1.0.0 defines the public API"

The following plus keyjson.org should be precise and comprehensive enough:

keyjson = require('keyjson');

{stringify,parse}

buffer = keyjson.stringify(['enwiki', 'Hacker News', 1729000]);
x = keyjson.parse(buffer);

b64{en,de}code

string = keyjson.b64encode(buffer_or_array_of_octets);
buffer = keyjson.b64decode(string_or_buffer); // padding is not optional.

{stringify,parse}64

keyjson.stringify64(x) == keyjson.b64encode(
                            keyjson.stringify(x))

keyjson.parse64(sb) == keyjson.parse(
                            keyjson.b64decode(sb))

Developing

Prereqs

python make.py
node test.js

Readme

Keywords

none

Package Sidebar

Install

npm i keyjson

Weekly Downloads

4

Version

1.0.1

License

none

Last publish

Collaborators

  • andrewschaaf