{
  "_args": [
    [
      {
        "raw": "dag-map@^2.0.2",
        "scope": null,
        "escapedName": "dag-map",
        "name": "dag-map",
        "rawSpec": "^2.0.2",
        "spec": ">=2.0.2 <3.0.0",
        "type": "range"
      },
      "/home/travis/build/lukesargeant/ember-sparkline/node_modules/ember-cli"
    ]
  ],
  "_from": "dag-map@>=2.0.2 <3.0.0",
  "_id": "dag-map@2.0.2",
  "_inCache": true,
  "_location": "/dag-map",
  "_nodeVersion": "6.9.2",
  "_npmOperationalInternal": {
    "host": "packages-12-west.internal.npmjs.com",
    "tmp": "tmp/dag-map-2.0.2.tgz_1483871252415_0.2655260416213423"
  },
  "_npmUser": {
    "name": "krisselden",
    "email": "kris.selden@gmail.com"
  },
  "_npmVersion": "3.10.9",
  "_phantomChildren": {},
  "_requested": {
    "raw": "dag-map@^2.0.2",
    "scope": null,
    "escapedName": "dag-map",
    "name": "dag-map",
    "rawSpec": "^2.0.2",
    "spec": ">=2.0.2 <3.0.0",
    "type": "range"
  },
  "_requiredBy": [
    "/ember-cli"
  ],
  "_resolved": "https://registry.npmjs.org/dag-map/-/dag-map-2.0.2.tgz",
  "_shasum": "9714b472de82a1843de2fba9b6876938cab44c68",
  "_shrinkwrap": null,
  "_spec": "dag-map@^2.0.2",
  "_where": "/home/travis/build/lukesargeant/ember-sparkline/node_modules/ember-cli",
  "author": {
    "name": "Kris Selden"
  },
  "bugs": {
    "url": "https://github.com/krisselden/dag-map/issues"
  },
  "dependencies": {},
  "description": "A topologically ordered map of key/value pairs with a simple API for adding constraints.",
  "devDependencies": {
    "qunitjs": "^2.0.1",
    "rollup": "^0.34.9",
    "sorcery": "^0.10.0",
    "tslint": "^3.14.0",
    "typedoc": "^0.5.3",
    "typescript": "^2.0.0"
  },
  "directories": {},
  "dist": {
    "shasum": "9714b472de82a1843de2fba9b6876938cab44c68",
    "tarball": "https://registry.npmjs.org/dag-map/-/dag-map-2.0.2.tgz"
  },
  "files": [
    "dag-map.d.ts",
    "dag-map.js",
    "dag-map.js.map",
    "dag-map.umd.js",
    "dag-map.umd.js.map"
  ],
  "gitHead": "30d454111a42eecd2247598c88e0f51d23fb0f1e",
  "homepage": "https://github.com/krisselden/dag-map#readme",
  "jsnext:main": "dag-map.js",
  "keywords": [
    "dag",
    "map",
    "dependencies"
  ],
  "license": "MIT",
  "main": "dag-map.umd.js",
  "maintainers": [
    {
      "name": "krisselden",
      "email": "kris.selden@gmail.com"
    },
    {
      "name": "stefanpenner",
      "email": "stefan.penner@gmail.com"
    },
    {
      "name": "rwjblue",
      "email": "me@rwjblue.com"
    },
    {
      "name": "chadhietala",
      "email": "chadhietala@gmail.com"
    }
  ],
  "module": "dag-map.js",
  "name": "dag-map",
  "optionalDependencies": {},
  "readme": "# dag-map [![Build Status](https://travis-ci.org/krisselden/dag-map.png?branch=master)](https://travis-ci.org/krisselden/dag-map)\n\nA topologically ordered map of key/value pairs with a simple API for adding constraints.\n\nUsed for ordering initializers in Ember.  Has a flexible constraint syntax\nthat can add before/after contraints that can forward reference things\nyet to be added.\n\n## API\n\n```js\n// import DAGMap from \"dag-map\";\nconst DAGMap = require(\"dag-map\").default;\n\nlet map = new DAGMap();\n\n// map a key value pair\n// #add(\n//   key: string, value: any,\n//   before?: string[] | string | undefined,\n//   after?: string[] | string | undefined\n// )\nmap.add('eat', 'Eat Dinner');\n\n// add a key value pair with before and after constraints\nmap.add('serve', 'Serve the food', 'eat', 'set');\n\n// keys can be added after a key has been referenced\nmap.add('set', 'Set the table');\n\n// graph now is eat -> serve -> set\n\n// constraints can be an array\nmap.add('cook', 'Cook the roast and veggies', 'serve', ['prep', 'buy']);\n\nmap.add('wash', 'Wash the veggies', 'prep', 'buy');\nmap.add('buy', 'Buy roast and veggies');\nmap.add('prep', 'Prep veggies', undefined, 'wash');\n\n// log in order (multiple valid spots for set the table).\nmap.each((key, val) => console.log(`${key}: ${val}`));\n// set: Set the table\n// buy: Buy roast and veggies\n// wash: Wash the veggies\n// prep: Prep veggies\n// cook: Cook the roast and veggies\n// serve: Serve the food\n// eat: Eat Dinner\n```\n\n### Notes\n\nadd is aliased as addEdges for backwards compat.\neach is aliased as topsort for backwards compat.\n\n## Developing\n\n* `npm install`\n* `npm test` runs the tests headless\n* `npm run build` rebuild\n* `npm run docs` documentation\n",
  "readmeFilename": "README.md",
  "repository": {
    "type": "git",
    "url": "git+https://github.com/krisselden/dag-map.git"
  },
  "scripts": {
    "build": "npm run tsc && npm run rollup && npm run sorcery",
    "docs": "typedoc --out docs --tsconfig tsconfig.json --excludeNotExported --mode modules --theme minimal",
    "prepublish": "npm run build",
    "rollup": "rollup -c",
    "sorcery": "sorcery -i dag-map.umd.js",
    "test": "node tests/run.js",
    "tsc": "tsc"
  },
  "typings": "dag-map.d.ts",
  "version": "2.0.2"
}
