Skip to content

Commit d81e34e

Browse files
RangerMauveRangerMauve
authored andcommitted
Added package.json for NPM support
1 parent 8892599 commit d81e34e

2 files changed

Lines changed: 40 additions & 0 deletions

File tree

README.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,20 @@ A child schema of JSON Graph Format can communicate its JSON schema using additi
307307
profile=http://jsongraphformat.info/schema.json;
308308
profile=http://jsongraphformat.info/child-schemas/bel-json-graph.schema.json
309309
310+
NPM support
311+
-----------
312+
313+
You can import the schema into your JS projects by installing it via NPM and requiring it.
314+
315+
.. code-block:: shell
316+
317+
npm install --save json-graph-specification
318+
319+
320+
.. code-block:: javascript
321+
322+
var JSONGraph = require("json-graph-specification");
323+
310324
Project Tests
311325
-------------
312326

package.json

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"name": "json-graph-specification",
3+
"version": "1.0.0",
4+
"description": "This JSON Graph Format is focused on capturing basic graph structure in a convenient to use format.",
5+
"main": "json-graph-schema.json",
6+
"directories": {
7+
"example": "examples"
8+
},
9+
"scripts": {
10+
"test": "echo \"Error: no test specified\" && exit 1"
11+
},
12+
"repository": {
13+
"type": "git",
14+
"url": "https://github.com/jsongraph/json-graph-specification.git"
15+
},
16+
"keywords": [
17+
"json",
18+
"graph",
19+
"schema",
20+
"nodes"
21+
],
22+
"bugs": {
23+
"url": "https://github.com/jsongraph/json-graph-specification/issues"
24+
},
25+
"homepage": "https://github.com/jsongraph/json-graph-specification"
26+
}

0 commit comments

Comments
 (0)