From 772378ddeab8b86097b3be7c241ea6a5fd4b4c62 Mon Sep 17 00:00:00 2001 From: Andrei Neculau Date: Mon, 22 Apr 2013 12:10:40 +0200 Subject: [PATCH] cleanup --- README.md | 4 ++-- cli.js | 5 ++--- index.js | 1 + package.json | 15 ++++----------- 4 files changed, 9 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index 65200b1..963ae9a 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# JSON Schema generator +# JSON Schema random Given a JSON Schema (draft 04), provide a random valid instance. @@ -21,7 +21,7 @@ This is an choppy piece of software, that is in need of some care and affection. # Install ```bash -npm install git://github.com/andreineculau/json-schema-random.git#v0.0.x +npm install json-schema-random ``` # Usage diff --git a/cli.js b/cli.js index e14919c..df30653 100755 --- a/cli.js +++ b/cli.js @@ -1,11 +1,10 @@ #!/usr/bin/env node /*jshint node:true*/ - -var FS = require('fs'), +var fs = require('fs'), generate = require('./index.js'), schema, instance; -schema = JSON.parse(FS.readFileSync(process.argv[2], 'utf8')); +schema = JSON.parse(fs.readFileSync(process.argv[2], 'utf8')); instance = generate(schema); console.log(JSON.stringify(instance, null, 4)); diff --git a/index.js b/index.js index e38de11..57b99dd 100644 --- a/index.js +++ b/index.js @@ -1,2 +1,3 @@ +/*jshint node:true*/ require('coffee-script'); module.exports = require('./index_'); diff --git a/package.json b/package.json index 3e37b64..cff9db5 100644 --- a/package.json +++ b/package.json @@ -1,11 +1,8 @@ { "name": "json-schema-random", "description": "Given a JSON Schema, provide a random valid instance", - "preferGlobal": false, - "private": true, - "version": "0.0.3", + "version": "0.0.4", "author": "Andrei Neculau <@andreineculau>", - "contributors": [], "users": { "andreineculau": true }, @@ -20,18 +17,14 @@ ], "license": "Apache 2", "engines": { - "node": "~0.8.21" + "node": ">=0.8.21" }, "dependencies": { - "coffee-script": "~1.4.0", + "coffee-script": "~1.6.0", "randexp": "~0.3.1", "otw": "git://github.com/andreineculau/otw.git#v0.0.2" }, - "devDependencies": {}, - "bundledDependencies": [], - "scripts": {}, "bin": { "json-schema-random": "cli.js" - }, - "main": "index.js" + } }