{
  "_args": [
    [
      {
        "raw": "consolidate@^0.14.0",
        "scope": null,
        "escapedName": "consolidate",
        "name": "consolidate",
        "rawSpec": "^0.14.0",
        "spec": ">=0.14.0 <0.15.0",
        "type": "range"
      },
      "/home/travis/build/lukesargeant/ember-sparkline/node_modules/testem"
    ]
  ],
  "_from": "consolidate@>=0.14.0 <0.15.0",
  "_id": "consolidate@0.14.5",
  "_inCache": true,
  "_location": "/consolidate",
  "_nodeVersion": "6.9.1",
  "_npmOperationalInternal": {
    "host": "packages-18-east.internal.npmjs.com",
    "tmp": "tmp/consolidate-0.14.5.tgz_1479397950486_0.529839156428352"
  },
  "_npmUser": {
    "name": "niftylettuce",
    "email": "niftylettuce@gmail.com"
  },
  "_npmVersion": "4.0.0",
  "_phantomChildren": {},
  "_requested": {
    "raw": "consolidate@^0.14.0",
    "scope": null,
    "escapedName": "consolidate",
    "name": "consolidate",
    "rawSpec": "^0.14.0",
    "spec": ">=0.14.0 <0.15.0",
    "type": "range"
  },
  "_requiredBy": [
    "/testem"
  ],
  "_resolved": "https://registry.npmjs.org/consolidate/-/consolidate-0.14.5.tgz",
  "_shasum": "5a25047bc76f73072667c8cb52c989888f494c63",
  "_shrinkwrap": null,
  "_spec": "consolidate@^0.14.0",
  "_where": "/home/travis/build/lukesargeant/ember-sparkline/node_modules/testem",
  "author": {
    "name": "TJ Holowaychuk",
    "email": "tj@vision-media.ca"
  },
  "bugs": {
    "url": "https://github.com/visionmedia/consolidate.js/issues"
  },
  "dependencies": {
    "bluebird": "^3.1.1"
  },
  "description": "Template engine consolidation library",
  "devDependencies": {
    "arc-templates": "^0.5.1",
    "atpl": ">=0.7.6",
    "babel-core": "^6.7.6",
    "babel-preset-react": "^6.5.0",
    "bracket-template": "^1.0.3",
    "dot": "^1.0.1",
    "dust": "^0.3.0",
    "dustjs-helpers": "^1.1.1",
    "dustjs-linkedin": "^2.7.2",
    "eco": "^1.1.0-rc-3",
    "ect": "^0.5.9",
    "ejs": "^2.3.4",
    "eslint": "^3.7.1",
    "eslint-config-standard": "^6.2.0",
    "eslint-plugin-promise": "^3.3.1",
    "eslint-plugin-standard": "^2.0.1",
    "haml-coffee": "^1.4.0",
    "hamlet": "^0.3.3",
    "hamljs": "^0.6.1",
    "handlebars": "^4.0.5",
    "hogan.js": "^3.0.2",
    "htmling": "^0.0.7",
    "jade": "^1.9.1",
    "jazz": "^0.0.18",
    "jqtpl": "~1.1.0",
    "just": "^0.1.8",
    "liquor": "^0.0.5",
    "lodash": "^4.0.0",
    "marko": "^3.12.0",
    "mocha": "^3.1.2",
    "mote": "^0.2.0",
    "mustache": "^2.2.1",
    "nunjucks": "^3.0.0",
    "pug": "^2.0.0-beta6",
    "qejs": "^3.0.5",
    "ractive": "^0.8.4",
    "react": "^15.3.2",
    "react-dom": "^15.3.2",
    "should": "*",
    "slm": "^0.5.0",
    "swig": "^1.4.1",
    "templayed": ">=0.2.3",
    "tinyliquid": "^0.2.22",
    "toffee": "^0.1.12",
    "twig": "^0.10.0",
    "underscore": "^1.3.3",
    "vash": "^0.12.2",
    "walrus": "^0.10.1",
    "whiskers": "^0.4.0"
  },
  "directories": {},
  "dist": {
    "shasum": "5a25047bc76f73072667c8cb52c989888f494c63",
    "tarball": "https://registry.npmjs.org/consolidate/-/consolidate-0.14.5.tgz"
  },
  "gitHead": "894b0de2fa9dcd2bde72ee14d6b36aa4ffb65f27",
  "homepage": "https://github.com/visionmedia/consolidate.js#readme",
  "keywords": [
    "engine",
    "template",
    "view"
  ],
  "license": "MIT",
  "main": "index",
  "maintainers": [
    {
      "name": "bridgear",
      "email": "ruben@bridgewater.de"
    },
    {
      "name": "doowb",
      "email": "brian.woodward@gmail.com"
    },
    {
      "name": "niftylettuce",
      "email": "niftylettuce@gmail.com"
    },
    {
      "name": "tjholowaychuk",
      "email": "tj@vision-media.ca"
    }
  ],
  "name": "consolidate",
  "optionalDependencies": {},
  "readme": "# Consolidate.js\n\n  Template engine consolidation library.\n\n## Installation\n\n    $ npm install consolidate\n\n## Supported template engines\n\n  - [atpl](https://github.com/soywiz/atpl.js)\n  - [bracket](https://github.com/danlevan/bracket-template)\n  - [doT.js](https://github.com/olado/doT) [(website)](http://olado.github.io/doT/)\n  - [dust (unmaintained)](https://github.com/akdubya/dustjs) [(website)](http://akdubya.github.com/dustjs/)\n  - [dustjs-linkedin (maintained fork of dust)](https://github.com/linkedin/dustjs) [(website)](http://linkedin.github.io/dustjs/)\n  - [eco](https://github.com/sstephenson/eco)\n  - [ect](https://github.com/baryshev/ect) [(website)](http://ectjs.com/)\n  - [ejs](https://github.com/mde/ejs) [(website)](http://ejs.co/)\n  - [haml](https://github.com/visionmedia/haml.js)\n  - [haml-coffee](https://github.com/9elements/haml-coffee)\n  - [hamlet](https://github.com/gregwebs/hamlet.js)\n  - [handlebars](https://github.com/wycats/handlebars.js/) [(website)](http://handlebarsjs.com/)\n  - [hogan](https://github.com/twitter/hogan.js) [(website)](http://twitter.github.com/hogan.js/)\n  - [htmling](https://github.com/codemix/htmling)\n  - [jade](https://github.com/visionmedia/jade) [(website)](http://jade-lang.com/)\n  - [jazz](https://github.com/shinetech/jazz)\n  - [jqtpl](https://github.com/kof/jqtpl)\n  - [JUST](https://github.com/baryshev/just)\n  - [liquor](https://github.com/chjj/liquor)\n  - [lodash](https://github.com/bestiejs/lodash) [(website)](http://lodash.com/)\n  - [marko](https://github.com/marko-js/marko) [(website)](http://markojs.com)\n  - [mote](https://github.com/satchmorun/mote) [(website)](http://satchmorun.github.io/mote/)\n  - [mustache](https://github.com/janl/mustache.js)\n  - [nunjucks](https://github.com/mozilla/nunjucks) [(website)](https://mozilla.github.io/nunjucks)\n  - [pug (formerly jade)](https://github.com/pugjs/pug) [(website)](http://jade-lang.com/)\n  - [QEJS](https://github.com/jepso/QEJS)\n  - [ractive](https://github.com/Rich-Harris/Ractive)\n  - [react](https://github.com/facebook/react)\n  - [slm](https://github.com/slm-lang/slm)\n  - [swig (unmaintained)](https://github.com/paularmstrong/swig)\n  - [templayed](http://archan937.github.com/templayed.js/)\n  - [twig](https://github.com/justjohn/twig.js)\n  - [liquid](https://github.com/leizongmin/tinyliquid) [(website)](http://liquidmarkup.org/)\n  - [toffee](https://github.com/malgorithms/toffee)\n  - [underscore](https://github.com/documentcloud/underscore) [(website)](http://underscorejs.org/#template)\n  - [vash](https://github.com/kirbysayshi/vash)\n  - [walrus](https://github.com/jeremyruppel/walrus) [(website)](http://documentup.com/jeremyruppel/walrus/)\n  - [whiskers](https://github.com/gsf/whiskers.js)\n\n__NOTE__: you must still install the engines you wish to use, add them to your package.json dependencies.\n\n## API\n\n  All templates supported by this library may be rendered using the signature `(path[, locals], callback)` as shown below, which happens to be the signature that Express 3.x supports so any of these engines may be used within Express.\n\n__NOTE__: All this example code uses cons.swig for the swig template engine. Replace swig with whatever templating you are using. For example, use cons.hogan for hogan.js, cons.jade for jade, etc. `console.log(cons)` for the full list of identifiers.\n\n```js\nvar cons = require('consolidate');\ncons.swig('views/page.html', { user: 'tobi' }, function(err, html){\n  if (err) throw err;\n  console.log(html);\n});\n```\n\n  Or without options / local variables:\n\n```js\nvar cons = require('consolidate');\ncons.swig('views/page.html', function(err, html){\n  if (err) throw err;\n  console.log(html);\n});\n```\n\n  To dynamically pass the engine, simply use the subscript operator and a variable:\n\n```js\nvar cons = require('consolidate')\n  , name = 'swig';\n\ncons[name]('views/page.html', { user: 'tobi' }, function(err, html){\n  if (err) throw err;\n  console.log(html);\n});\n```\n\n### Promises\n\n  Additionally, all templates optionally return a promise if no callback function is provided. The promise represents the eventual result of the template function which will either resolve to a string, compiled from the template, or be rejected. Promises expose a `then` method which registers callbacks to receive the promise’s eventual value and a `catch` method which the reason why the promise could not be fulfilled. Promises allow more synchronous-like code structure and solve issues like race conditions.\n\n```js\nvar cons = require('consolidate');\n\ncons.swig('views/page.html', { user: 'tobi' })\n  .then(function (html) {\n    console.log(html);\n  })\n  .catch(function (err) {\n    throw err;\n  });\n```\n\n## Caching\n\n To enable or disable caching simply pass `{ cache: true/false }`. Engines _may_ use this option to cache things reading the file contents, compiled `Function`s etc. Engines which do _not_ support this may simply ignore it. All engines that consolidate.js implements I/O for will cache the file contents, ideal for production environments.\n\n```js\nvar cons = require('consolidate');\ncons.swig('views/page.html', { cache: false, user: 'tobi' }, function(err, html){\n  if (err) throw err;\n  console.log(html);\n});\n```\n\n## Express 3.x example\n\n```js\nvar express = require('express')\n  , cons = require('consolidate')\n  , app = express();\n\n// assign the swig engine to .html files\napp.engine('html', cons.swig);\n\n// set .html as the default extension\napp.set('view engine', 'html');\napp.set('views', __dirname + '/views');\n\nvar users = [];\nusers.push({ name: 'tobi' });\nusers.push({ name: 'loki' });\nusers.push({ name: 'jane' });\n\napp.get('/', function(req, res){\n  res.render('index', {\n    title: 'Consolidate.js'\n  });\n});\n\napp.get('/users', function(req, res){\n  res.render('users', {\n    title: 'Users',\n    users: users\n  });\n});\n\napp.listen(3000);\nconsole.log('Express server listening on port 3000');\n```\n\n## Template Engine Instances\n\nTemplate engines are exposed via the `cons.requires` object, but they are not instantiated until you've called the `cons[engine].render()` method. You can instantiate them manually beforehand if you want to add filters, globals, mixins, or other engine features.\n\n```js\nvar cons = require('consolidate'),\n  nunjucks = require('nunjucks');\n\n// add nunjucks to requires so filters can be\n// added and the same instance will be used inside the render method\ncons.requires.nunjucks = nunjucks.configure();\n\ncons.requires.nunjucks.addFilter('foo', function () {\n  return 'bar';\n});\n```\n\n## Notes\n\n* If you're using Nunjucks, please take a look at the `exports.nunjucks.render` function in `lib.consolidate.js`.  You can pass your own engine/environment via `options.nunjucksEnv`, or if you want to support Express you can pass `options.settings.views`, or if you have another use case, pass `options.nunjucks` (see the code for more insight).\n* You can pass **partials** with `options.partials`\n* For using **template inheritance** with nunjucks, you can pass a loader\n  with `options.loader`.\n* To use **filters** with tinyliquid, use `options.filters` and specify an array of properties, each of which is a named filter function. A filter function takes a string as a parameter and returns a modified version of it.\n* To use **custom tags** with tinyliquid, use `options.customTags` to specify an array of tag functions that follow the tinyliquid [custom tag](https://github.com/leizongmin/tinyliquid/wiki/Custom-Tag) definition.\n* The default directory used with the **include** tag with tinyliquid is the current working directory. To override this, use `options.includeDir`.\n* `React` To render content into a html base template (eg. `index.html` of your React app), pass the path of the template with `options.base`.\n\n## Running tests\n\n  Install dev deps:\n\n    $ npm install -d\n\n  Run the tests:\n\n    $ make test\n\n## License\n\n(The MIT License)\n\nCopyright (c) 2011-2016 TJ Holowaychuk &lt;tj@vision-media.ca&gt;\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n",
  "readmeFilename": "Readme.md",
  "repository": {
    "type": "git",
    "url": "git+https://github.com/visionmedia/consolidate.js.git"
  },
  "scripts": {
    "test": "mocha"
  },
  "version": "0.14.5"
}
