Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
cleanup
  • Loading branch information
Andrei Neculau committed Apr 22, 2013
1 parent 6d7a84d commit 772378d
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 16 deletions.
4 changes: 2 additions & 2 deletions README.md
@@ -1,4 +1,4 @@
# JSON Schema generator
# JSON Schema random

Given a JSON Schema (draft 04), provide a random valid instance.

Expand All @@ -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
Expand Down
5 changes: 2 additions & 3 deletions 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));
1 change: 1 addition & 0 deletions index.js
@@ -1,2 +1,3 @@
/*jshint node:true*/
require('coffee-script');
module.exports = require('./index_');
15 changes: 4 additions & 11 deletions 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
},
Expand All @@ -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"
}
}

0 comments on commit 772378d

Please sign in to comment.