0.0.1 • Published 10 years ago
webppl-json v0.0.1
webppl-json
This package provides two functions json.read and json.write for reading and writing JSON files:
// Read data:
var testData = json.read('data/test-file.json');
// Write data:
json.write('data/test-file-copy.json', testData);Installation
To globally install webppl-json, run:
mkdir -p ~/.webppl
npm install --prefix ~/.webppl webppl-jsonThis may print warnings (npm WARN ENOENT...) which can be ignored.
To upgrade to the latest version, run:
npm install --prefix ~/.webppl webppl-json --forceUsage
Once installed, you can make json.read and json.write available to program.wppl by running:
webppl program.wppl --require webppl-jsonTesting
Run the included test using:
webppl test.wppl --require .License
MIT
0.0.1
10 years ago