{
  "name": "render-appcache-manifest",
  "description": "Renders HTML5 application cache manifest.",
  "keywords": [
    "HTML5",
    "appcache",
    "manifest"
  ],
  "version": "0.3.0",
  "author": {
    "name": "Meryn Stol",
    "email": "merynstol@gmail.com"
  },
  "license": "MIT",
  "homepage": "https://github.com/meryn/render-appcache-manifest",
  "bugs": {
    "url": "https://github.com/meryn/render-appcache-manifest/issues"
  },
  "repository": {
    "type": "git",
    "url": "git://github.com/meryn/render-appcache-manifest.git"
  },
  "devDependencies": {
    "coffee-script": "~1.6.2",
    "mocha": "1.x"
  },
  "engines": {
    "node": "0.10.x",
    "npm": ">= 1.2.x"
  },
  "main": "lib/render-appcache-manifest.js",
  "scripts": {
    "prepublish": "npm test",
    "pretest": "make build",
    "test": "make test"
  },
  "contributors": [
    {
      "name": "Meryn Stol",
      "url": "https://github.com/meryn"
    },
    {
      "name": "Mike Reinstein",
      "url": "https://github.com/mreinstein"
    }
  ],
  "readme": "# render-appcache-manifest [![Build Status](https://travis-ci.org/meryn/render-appcache-manifest.png?branch=master)](https://travis-ci.org/meryn/render-appcache-manifest) [![Dependency Status](https://david-dm.org/meryn/render-appcache-manifest.png)](https://david-dm.org/meryn/render-appcache-manifest)\n\nRenders HTML5 application cache manifest.\n\nSee also [parse-appcache-manifest](http://npmjs.org/package/parse-appcache-manifest).\n\n## Usage\n\n`npm install render-appcache-manifest`\n\n#### Generate Manifest from Direct Object\n```javascript\nrenderManifest = require \"render-appcache-manifest\"\nrenderManifest(contents)\n```\n\n`renderManifest` returns the rendered manifest as a string.  \n`contents` is an object that can have the following properties, all optional:\n\n* `cache` - an array of entries (urls) you want in the `CACHE` section.\n* `network` - an array of entries (urls or url-patterns, using wildcards) you want in the `NETWORK` section\n* `fallback` - an object with key-value pairs where key is the url or url-pattern to capture, and value is the fallback url. They will appear in the `FALLBACK` section.\n* `settings` - an array of settings. Currently the only value that appcaches understand is `prefer-online` or `fast` which refers to the caching mode enabled. See http://www.whatwg.org/specs/web-apps/current-work/multipage/offline.html#parsing-cache-manifests for full details.\n* `unique` - if set to a truthy value, will add result of `Math.random()` as a comment, guaranteeing uniqueness.\n* `lastModified` - a `Date` object. Will be used to generate a \"Last modified at\" comment.\n* `comment` - a comment string.\n* `comments` - an array of comment strings, each comment will take up one line.\n\nThere's no way to control layout of the generated manifest. The output will be generally neat.\n\nrender-appcache-manifest will not validate the correctness of input. You are responsible for providing corrent urls or url-patterns, where appropriate. Also, adding a multi-line string as a comment will break the manifest.\n\n#### Generate Manifest from Tokens\n\nIf you need fine grained control over the rendering process, you may pass in a list of ordered tokens to render a manifest. The tokens are generated by https://github.com/meryn/parse-appcache-manifest, but you can just as easily craft your own token list provided the format matches.\n\n\n```coffeescript\nappcacheRender = require 'render-appcache-manifest'\nout = appcacheRender tokens\n```\n\n## Development\n\nTo compile the code:\n\n```sh\nnpm install # once, to get the dev dependencies\nmake build\n```\n\nTo test the code:\n\n```sh\nnpm test\n```\n\n## Credits\n\nThe initial structure of this module was generated by [Jumpstart](https://github.com/meryn/jumpstart), using the [Jumpstart Black Coffee](https://github.com/meryn/jumpstart-black-coffee) template.\n\nTokenizing support, settings support, whatwg spec conformance, and updated documentation from https://github.com/mreinstein.\n\n## License\n\nrender-appcache-manifest is released under the [MIT License](http://opensource.org/licenses/MIT).  \nCopyright (c) 2013 Meryn Stol, [Michael Reinstein](https://github.com/mreinstein)",
  "readmeFilename": "README.md",
  "_id": "render-appcache-manifest@0.3.0",
  "dist": {
    "shasum": "c43ca8f331b7a7363272dd80b6023a3dd4cf66a5",
    "tarball": "https://registry.npmjs.org/render-appcache-manifest/-/render-appcache-manifest-0.3.0.tgz"
  },
  "_from": "render-appcache-manifest@0.3.0",
  "_npmVersion": "1.2.25",
  "_npmUser": {
    "name": "meryn",
    "email": "merynstol@gmail.com"
  },
  "maintainers": [
    {
      "name": "meryn",
      "email": "merynstol@gmail.com"
    }
  ],
  "directories": {},
  "_shasum": "c43ca8f331b7a7363272dd80b6023a3dd4cf66a5",
  "_resolved": "https://registry.npmjs.org/render-appcache-manifest/-/render-appcache-manifest-0.3.0.tgz"
}
