dson.parser.js
v1.1.0
Published
parser for dson
Downloads
4
Readme
dson.parser.js
parser for dson
just do it
npm i --save dson.parser.js
var parser = require('dson.parser.js')
var dson = require('dson.js').DSON
//stringify your dson
var options = {}
parser.stringify(d(),options).then(str=>{
console.log(str)
// parse it
parser.parse(str,options).then(d=>{
})
})
support encypt (aes)
var en = await paser.en( 'abc',dson,options2)
var nDson = await paser.de( 'abc',en, options2)
如何打包
npm i -g browserify
browserify -r ./index.js:dson.parser.js -o build/dson.parser.js