0.0.2 • Published 11 years ago

json-parse-with-protocol v0.0.2

Weekly downloads
3
License
MIT
Repository
github
Last release
11 years ago

JSON.parse with protocol

It's instead of shortstop@async, sometimes we need read config file sync

Installation

npm install json-parse-with-protocol

Usage

var jsonpp = require('json-parse-with-protocol')

var jsonString = JSON.stringify({
	foo: 'bar',
	path: 'path:./your-path',
	file: 'file:/your-file'
})

console.log( jsonpp(jsonString) )
// -> { foo: bar, path: "/full path/your-path", file: <..file buffer..> }