{
  "author": {
    "name": "Thomas Davis",
    "email": "thomasalwyndavis@gmail.com"
  },
  "name": "w3cjs",
  "description": "A node.js module for using the w3c validator.",
  "version": "0.1.9",
  "repository": {
    "type": "git",
    "url": "https://github.com/thomasdavis/w3cjs"
  },
  "main": "./lib/w3cjs",
  "dependencies": {
    "argparse": ">= 0.1.3",
    "superagent": ">= 0.6.0"
  },
  "devDependencies": {},
  "optionalDependencies": {},
  "engines": {
    "node": "*"
  },
  "keywords": [
    "w3c",
    "validator",
    "html",
    "html5"
  ],
  "license": "http://unlicense.org/",
  "readme": "\n[![Build Status](https://secure.travis-ci.org/thomasdavis/w3cjs.png?branch=master)](http://travis-ci.org/thomasdavis/w3cjs)\n\n# w3cjs\n\nA node.js library for testing files or url's against the w3c html validator.\n\n## Installation\n\n```js\nnpm install w3cjs\n```\n\n## Usage\n\n```js\nvar w3cjs = require('w3cjs');\n\nvar results = w3cjs.validate({\n\tfile: 'demo.html', // file can either be a local file or a remote file\n\t//file: 'http://html5boilerplate.com/',\n\toutput: 'json', // Defaults to 'json', other option includes html\n\tcallback: function (res) {\n\t\tconsole.log(res);\n\t\t// depending on the output type, res will either be a json object or a html string\n\t}\n});\n```\n\n## Example async testing with Mocha \n\n```js\nvar w3cjs = require('w3cjs');\ndescribe('html validation', function(){\n  it('index page should have no html errors', function(done){\n  \tw3cjs.validate({\n  \t\tfile: 'index.html',\n  \t\tcallback: function (res) {\n  \t\t\t\tconsole.log(res);\n  \t\t\tif (res.messages.length > 0 ) {\n  \t\t\t\tthrow {error: 'html errors have been found', results: res};\n  \t\t\t};\n  \t\t\tdone();\n  \t\t}\n  \t})\n  })\n})\n\n```\n\n\n\n<img alt=\"Clicky\" width=\"1\" height=\"1\" src=\"//in.getclicky.com/66606907ns.gif\" />\n",
  "readmeFilename": "README.md",
  "bugs": {
    "url": "https://github.com/thomasdavis/w3cjs/issues"
  },
  "_id": "w3cjs@0.1.9",
  "dist": {
    "shasum": "3c59d7f3d956453179a710bf3b3cf374ec20c980"
  },
  "_from": "w3cjs@",
  "_resolved": "https://registry.npmjs.org/w3cjs/-/w3cjs-0.1.9.tgz"
}
