{
  "name": "biojs-io-newick",
  "description": "Parses newick strings into JSON and JSON into newick",
  "version": "1.5.0",
  "homepage": "http://github.com/biojs/biojs",
  "repository": {
    "type": "git",
    "url": "git://github.com/daviddao/biojs-io-newick"
  },
  "author": {
    "name": "David",
    "email": "biojs-technical@googlegroups.com"
  },
  "dependencies": {},
  "devDependencies": {
    "browserify": "~4.2.0",
    "uglify-js": "~2.4.15",
    "mocha": "~1.20.1",
    "should": "~4.0.4",
    "chai": "~1.9.1"
  },
  "keywords": [
    "biojs",
    "parser",
    "newick",
    "extended newick"
  ],
  "main": "src/index.js",
  "scripts": {
    "test": "mocha --reporter spec",
    "start": "browserify -r ./:biojs-io-newick> build/biojs-io-newick.min.js"
  },
  "license": "Apache 2",
  "readmeFilename": "README.md",
  "bugs": {
    "url": "https://github.com/biojs/biojs2/issues"
  },
  "readme": "BioJS Newick Parser \n----------\n\n### How to build it \n\n```javascript \nnpm i \nnpm start\nnpm test\n```\n\n### Documentation \n\nNow include biojs-io-newick.min.js in the build folder into your html (see example.html).\nJust call method `parse_newick(string)` for parsing a newick string into JSON. \n\n```javascript\nvar parser = require(\"biojs-io-newick\");\nparser.parse_newick('((A,B),C)');\n```\n\nCall the method `parse_nhx(string)` for parsing an extended newick formats into JSON.\n\n```javascript\nvar parser = require(\"biojs-io-newick\");\nparser.parse_nhx('((A,B),C)');\n```\n\nCall the method `parse_json(string)` for parsing a json string back into newick format.\n\n```javascript\nvar parser = require(\"biojs-io-newick\");\nparser.parse_json(json);\n```\n\n[Example tree](http://en.wikipedia.org/wiki/Newick_format):\n\nNewick format:\n\n```sh\n(A:0.1,B:0.2,(C:0.3,D:0.4)E:0.5)F\n```\n\nConverted to JSON:\n\n```javascript\n{name : \"F\",\n  children: [\n    {name: \"A\", branch_length: 0.1},\n    {name: \"B\", branch_length: 0.2},\n    {\n      name: \"E\",\n      length: 0.5,\n      children: [\n        {name: \"C\", branch_length: 0.3},\n        {name: \"D\", branch_length: 0.4}\n      ]\n    }\n  ]\n}\n```\n\n#### Contributions\n\nKudos to @alanrice for the `parse_json` method",
  "_id": "biojs-io-newick@1.5.0",
  "dist": {
    "shasum": "30d875b81b0ce7c322258c1ca6ec633430ca1b03"
  },
  "_from": "biojs-io-newick@",
  "_resolved": "https://registry.npmjs.org/biojs-io-newick/-/biojs-io-newick-1.5.0.tgz"
}
