Added support for global installation
This commit is contained in:
parent
af9abe3f2d
commit
3740a5e0ca
|
@ -5,5 +5,5 @@ Command line tool for validating Turtle and Ntriples documents on syntax and XSD
|
|||
|
||||
Usage:
|
||||
|
||||
npm install turtle-validator
|
||||
node TurtleValidator.js <path-to-file>
|
||||
npm install turtle-validator -g
|
||||
ttl <path-to-file>
|
||||
|
|
|
@ -1,8 +1,10 @@
|
|||
#!/usr/bin/env node
|
||||
|
||||
var N3 = require('n3'), fs = require('fs'), N3Util = N3.Util;
|
||||
|
||||
if (!process.argv[2]) {
|
||||
console.log('RDF N3/NTriples/Turtle file validator');
|
||||
console.log('Usage: $ node N3Validator.js <path-to-file>');
|
||||
console.log('Usage: $ ttl <path-to-file>');
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
"version": "0.1.0",
|
||||
"description": "This command line tool validates Turtle documents and does XSD datatype checks",
|
||||
"main": "TurtleValidator.js",
|
||||
"bin" : { "ttl" : "./TurtleValidator.js" },
|
||||
"dependencies": {
|
||||
"n3": "~0.2.6"
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue