{"_id":"create-html","_rev":"12-2f5aee49fea29ff31dce132582d91807","name":"create-html","description":"create the content of an html file with one function call","dist-tags":{"latest":"4.1.0"},"versions":{"1.0.0":{"name":"create-html","version":"1.0.0","description":"create an html file with one function call","main":"index.js","dependencies":{},"devDependencies":{"from2-string":"^1.1.0","hyperstream":"^1.2.2","markdown-stream":"^1.0.1","standard":"^7.1.2","tap-spec":"^4.1.1","tape":"^4.5.1"},"scripts":{"lint":"standard","test":"npm run lint && node tests/index.js | tap-spec"},"repository":{"type":"git","url":"git+https://github.com/sethvincent/create-html.git"},"keywords":["html","static","sites","index.html"],"author":{"name":"sethvincent"},"license":"MIT","bugs":{"url":"https://github.com/sethvincent/create-html/issues"},"homepage":"https://github.com/sethvincent/create-html#readme","gitHead":"bbcfb0411a754007714ae4e387410bb490e01827","_id":"create-html@1.0.0","_shasum":"7173b0a17af4446e04a49d8943dea8d2a3ba0d3d","_from":".","_npmVersion":"3.8.9","_nodeVersion":"6.2.0","_npmUser":{"name":"sethvincent","email":"sethvincent@gmail.com"},"dist":{"shasum":"7173b0a17af4446e04a49d8943dea8d2a3ba0d3d","tarball":"https://registry.npmjs.org/create-html/-/create-html-1.0.0.tgz","integrity":"sha512-QeX9VbalrsQaCc9Ig9Dic9r56NM/Tkfi4GOKG1dt8X2nVsSV7NKH+x7ps4oilUMAtaZCOA7fn89dKtB5pj/tog==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDUmd04f2pBmLsDk3NaZV3N0nR3G2rRasXhjkm1jRMUvAiB/rMlxZfCSzep7IZUIJECBFJ47dFz1N/Hrj9x8SrUJDQ=="}]},"maintainers":[{"name":"sethvincent","email":"sethvincent@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/create-html-1.0.0.tgz_1465331116138_0.6732011726126075"}},"1.1.0":{"name":"create-html","version":"1.1.0","description":"create an html file with one function call","main":"index.js","bin":{"create-html":"cli.js"},"dependencies":{"exit":"^0.1.2","minimist":"^1.2.0"},"devDependencies":{"from2-string":"^1.1.0","hyperstream":"^1.2.2","markdown-stream":"^1.0.1","standard":"^7.1.2","tap-spec":"^4.1.1","tape":"^4.5.1"},"scripts":{"lint":"standard","test":"npm run lint && node tests/index.js | tap-spec"},"repository":{"type":"git","url":"git+https://github.com/sethvincent/create-html.git"},"keywords":["html","static","sites","index.html"],"author":{"name":"sethvincent"},"license":"MIT","bugs":{"url":"https://github.com/sethvincent/create-html/issues"},"homepage":"https://github.com/sethvincent/create-html#readme","gitHead":"77c4976ea41842c8c290f37ac42928e9ba69ceea","_id":"create-html@1.1.0","_shasum":"238b59104f99b9a460e7dae73829c96e17c00454","_from":".","_npmVersion":"3.8.9","_nodeVersion":"6.2.0","_npmUser":{"name":"sethvincent","email":"sethvincent@gmail.com"},"dist":{"shasum":"238b59104f99b9a460e7dae73829c96e17c00454","tarball":"https://registry.npmjs.org/create-html/-/create-html-1.1.0.tgz","integrity":"sha512-8SRhpPUaOEHUEzO1+frdnGWjvcfkyr8iEaSx9hMUATLAs0NR35VvplIrNOYBxdiJnFb5cZRMD+IqdTpAqdhgjQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDYkKNVSZJW0Iy/LyfnaRETuVXLUOhtS6nUQmrF6kkXlQIgS0YP9CfEnHaOeq7Z5vqN2eVnD2nMlZI0alJYMFgwgH0="}]},"maintainers":[{"name":"sethvincent","email":"sethvincent@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/create-html-1.1.0.tgz_1465412791076_0.30674196733161807"}},"1.2.0":{"name":"create-html","version":"1.2.0","description":"create the content of an html file with one function call","main":"index.js","bin":{"create-html":"cli.js"},"dependencies":{"exit":"^0.1.2","minimist":"^1.2.0"},"devDependencies":{"from2-string":"^1.1.0","hyperstream":"^1.2.2","markdown-stream":"^1.0.1","standard":"^7.1.2","tap-spec":"^4.1.1","tape":"^4.5.1"},"scripts":{"lint":"standard","test":"npm run lint && node tests/index.js | tap-spec"},"repository":{"type":"git","url":"git+https://github.com/sethvincent/create-html.git"},"keywords":["html","static","sites","index.html"],"author":{"name":"sethvincent"},"license":"MIT","bugs":{"url":"https://github.com/sethvincent/create-html/issues"},"homepage":"https://github.com/sethvincent/create-html#readme","gitHead":"418ff6d2e9082f0684391c9162f8ed32bf3955ee","_id":"create-html@1.2.0","_shasum":"09fa60fdc8c6f83f1b6a85423a9841709d7ca0a4","_from":".","_npmVersion":"4.1.2","_nodeVersion":"6.9.1","_npmUser":{"name":"sethvincent","email":"sethvincent@gmail.com"},"dist":{"shasum":"09fa60fdc8c6f83f1b6a85423a9841709d7ca0a4","tarball":"https://registry.npmjs.org/create-html/-/create-html-1.2.0.tgz","integrity":"sha512-xvJtnlll3UmMPw5AMn1LIuNQE78jRSoaMbbh0RnUEXhNFwUVul9ldHDbubtTemyytVvcPAVs+pLheKaHuJbN2w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID/YliraJT+BXXlKi0o4X+q9Xs8CMsBOxmrwEFwTunRHAiEA6ynF9qeet7KESnXg1Px9qWAG5nMGlkOwhLtZ3KVr5Nc="}]},"maintainers":[{"name":"sethvincent","email":"sethvincent@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/create-html-1.2.0.tgz_1491918139126_0.3826382625848055"}},"2.0.0":{"name":"create-html","version":"2.0.0","description":"create the content of an html file with one function call","main":"index.js","bin":{"create-html":"cli.js"},"dependencies":{"exit":"^0.1.2","minimist":"^1.2.0"},"devDependencies":{"from2-string":"^1.1.0","hyperstream":"^1.2.2","markdown-stream":"^1.0.1","standard":"^7.1.2","tap-spec":"^4.1.1","tape":"^4.5.1"},"scripts":{"lint":"standard","test":"npm run lint && node tests/index.js | tap-spec"},"repository":{"type":"git","url":"git+https://github.com/sethvincent/create-html.git"},"keywords":["html","static","sites","index.html"],"author":{"name":"sethvincent"},"license":"MIT","bugs":{"url":"https://github.com/sethvincent/create-html/issues"},"homepage":"https://github.com/sethvincent/create-html#readme","gitHead":"076685c0a803286b5477fea66f953ddaa90d2dc8","_id":"create-html@2.0.0","_shasum":"deb0591f958220e48626bba6e4a96352f85c8069","_from":".","_npmVersion":"4.1.2","_nodeVersion":"6.9.1","_npmUser":{"name":"sethvincent","email":"sethvincent@gmail.com"},"dist":{"shasum":"deb0591f958220e48626bba6e4a96352f85c8069","tarball":"https://registry.npmjs.org/create-html/-/create-html-2.0.0.tgz","integrity":"sha512-ZuadAVDH3kovpyyC+dIVCev3Q3eKibEhuya/ArNT3RnOKiimA3R6ueLVfXfLe0ZZeYwNDgK7IkWLlrF5tn0rFQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDMKs92KfyfZy2LJUKpVqrduUBkHOYQ4ZmC+4wbbgm5TAiAoK/vGU8LhUX1RQ/WL2bcnnVbA+rPu8+4MKjVF6ExJlw=="}]},"maintainers":[{"name":"sethvincent","email":"sethvincent@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/create-html-2.0.0.tgz_1492879084699_0.8323289642576128"}},"3.0.0":{"name":"create-html","version":"3.0.0","description":"create the content of an html file with one function call","main":"index.js","bin":{"create-html":"cli.js"},"dependencies":{"exit":"^0.1.2","minimist":"^1.2.0"},"devDependencies":{"from2-string":"^1.1.0","hyperstream":"^1.2.2","markdown-stream":"^1.0.1","standard":"^7.1.2","tap-spec":"^4.1.1","tape":"^4.5.1"},"scripts":{"lint":"standard","test":"npm run lint && node tests/index.js | tap-spec"},"repository":{"type":"git","url":"git+https://github.com/sethvincent/create-html.git"},"keywords":["html","static","sites","index.html"],"author":{"name":"sethvincent"},"license":"MIT","bugs":{"url":"https://github.com/sethvincent/create-html/issues"},"homepage":"https://github.com/sethvincent/create-html#readme","gitHead":"59e6c039213af957b2ba5dfdee79d04e7476a096","_id":"create-html@3.0.0","_shasum":"b1cea1206c0fa6aadf9aacdbd0d278cdab3631fb","_from":".","_npmVersion":"4.1.2","_nodeVersion":"6.9.1","_npmUser":{"name":"sethvincent","email":"sethvincent@gmail.com"},"dist":{"shasum":"b1cea1206c0fa6aadf9aacdbd0d278cdab3631fb","tarball":"https://registry.npmjs.org/create-html/-/create-html-3.0.0.tgz","integrity":"sha512-JFicOHcxca1Hv/GA6fJjAo1vLiT4UsV5YjBXEdpZ4Uyei50eqVd/CKQk7zjuErvRAL65ybLTzTcRlIzVH7VF9g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHdUdjdpFNYRHY0S7HtVWCApmyfeU6VQX2HMtMxHNwIvAiADxXt7nRuuiNg96fbX1vf0GTMtiJCstUUzsjrz6BYljQ=="}]},"maintainers":[{"name":"sethvincent","email":"sethvincent@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/create-html-3.0.0.tgz_1493170698913_0.5124590441118926"}},"3.1.0":{"name":"create-html","version":"3.1.0","description":"create the content of an html file with one function call","main":"index.js","bin":{"create-html":"cli.js"},"dependencies":{"exit":"^0.1.2","minimist":"^1.2.0"},"devDependencies":{"from2-string":"^1.1.0","hyperstream":"^1.2.2","markdown-stream":"^1.0.1","standard":"^7.1.2","tap-spec":"^4.1.1","tape":"^4.5.1"},"scripts":{"lint":"standard","test":"npm run lint && node tests/index.js | tap-spec"},"repository":{"type":"git","url":"git+https://github.com/sethvincent/create-html.git"},"keywords":["html","static","sites","index.html"],"author":{"name":"sethvincent"},"license":"MIT","bugs":{"url":"https://github.com/sethvincent/create-html/issues"},"homepage":"https://github.com/sethvincent/create-html#readme","gitHead":"234e78b24cecd3c0d9e641bd1405855879e04371","_id":"create-html@3.1.0","_npmVersion":"5.1.0","_nodeVersion":"6.9.1","_npmUser":{"name":"sethvincent","email":"sethvincent@gmail.com"},"dist":{"integrity":"sha512-yUDK+s4C+zwRCgceC8r0sB351cwJcgIvpPlJz6Xkj9Q1bids26FuC9XAM82VebcAneatEeFLiw+3evbg95lz/g==","shasum":"d0a0ffca1ef444f42126dfe4feacc49b898e193c","tarball":"https://registry.npmjs.org/create-html/-/create-html-3.1.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBeCLZbkUo9mdoVnw70DRQ48r5yZccThmVA3F5bXcHCMAiBW4jltzpHHsIpb9O/wzfO9Ty3M3EnXc/TAqtCp5wf8mg=="}]},"maintainers":[{"name":"sethvincent","email":"sethvincent@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/create-html-3.1.0.tgz_1499621603007_0.6889249517116696"}},"4.0.0":{"name":"create-html","version":"4.0.0","description":"create the content of an html file with one function call","main":"index.js","bin":{"create-html":"cli.js"},"dependencies":{"exit":"^0.1.2","minimist":"^1.2.0"},"devDependencies":{"from2-string":"^1.1.0","hyperstream":"^1.2.2","markdown-stream":"^1.0.1","standard":"^7.1.2","tap-spec":"^4.1.1","tape":"^4.5.1"},"scripts":{"lint":"standard","test":"npm run lint && node tests/index.js | tap-spec"},"repository":{"type":"git","url":"git+https://github.com/sethvincent/create-html.git"},"keywords":["html","static","sites","index.html"],"author":{"name":"sethvincent"},"license":"MIT","bugs":{"url":"https://github.com/sethvincent/create-html/issues"},"homepage":"https://github.com/sethvincent/create-html#readme","gitHead":"4bedce26e13ae644a80be0bd0684df223d8959bb","_id":"create-html@4.0.0","_npmVersion":"5.3.0","_nodeVersion":"6.11.1","_npmUser":{"name":"sethvincent","email":"sethvincent@gmail.com"},"dist":{"integrity":"sha512-STB2IY1nb0ho29oQsuMw/S7vcwxYYBV20T3cb1azZW2a59PsKwyIvd7DtAlyG20GZ2jtUw+T38hqky0O1fm0QQ==","shasum":"adaba45f4347cf08a725dfc633e4b785445e1c09","tarball":"https://registry.npmjs.org/create-html/-/create-html-4.0.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCFkciPHVrSTaNpZ3vqRlhFW0RV+1B7LcSUN94RaD+JfQIgYXirbrYPM/MtRjx6SZ3AmZpQv7TyEv/4DcPR8uYm9Bk="}]},"maintainers":[{"name":"sethvincent","email":"sethvincent@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/create-html-4.0.0.tgz_1504387270191_0.23340277816168964"}},"4.1.0":{"_args":[[{"raw":"create-html@^4.0.0","scope":null,"escapedName":"create-html","name":"create-html","rawSpec":"^4.0.0","spec":">=4.0.0 <5.0.0","type":"range"},"/Users/emcniece/Code/ionic/aurora-app"]],"_from":"create-html@>=4.0.0 <5.0.0","_id":"create-html@4.1.0","_inCache":true,"_location":"/create-html","_nodeVersion":"7.9.0","_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/create-html-4.1.0.tgz_1510784654413_0.9751526375766844"},"_npmUser":{"name":"sethvincent","email":"sethvincent@gmail.com"},"_npmVersion":"5.5.1","_phantomChildren":{},"_requested":{"raw":"create-html@^4.0.0","scope":null,"escapedName":"create-html","name":"create-html","rawSpec":"^4.0.0","spec":">=4.0.0 <5.0.0","type":"range"},"_requiredBy":["#DEV:/"],"_resolved":"https://npm.limbicmedia.ca/create-html/-/create-html-4.0.0.tgz","_shasum":"adaba45f4347cf08a725dfc633e4b785445e1c09","_shrinkwrap":null,"_spec":"create-html@^4.0.0","_where":"/Users/emcniece/Code/ionic/aurora-app","author":{"name":"sethvincent"},"bin":{"create-html":"cli.js"},"bugs":{"url":"https://github.com/sethvincent/create-html/issues"},"dependencies":{"exit":"^0.1.2","minimist":"^1.2.0"},"description":"create the content of an html file with one function call","devDependencies":{"from2-string":"^1.1.0","hyperstream":"^1.2.2","markdown-stream":"^1.0.1","standard":"^7.1.2","tap-spec":"^4.1.1","tape":"^4.5.1"},"directories":{},"dist":{"integrity":"sha512-1BNjCqdLVJfhCdRDseyDg8NqYu4Y0ZOk09VC8GqAUdp4rfmfWRfvh77YBRJPLQDQN5qhHOvAnHMjEgy29DCuzg==","shasum":"9cccb96e2caaafb301e2d0d2489d295330b2ae8e","tarball":"https://registry.npmjs.org/create-html/-/create-html-4.1.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDLfZ257nbE8wxBJINAW4Oe2sZpZPvuxGe93X/rL0dU+wIhAOrCTwZ/YFGZKIiFOt2s2ik+PclwzSzwckpe1JQ8WfwR"}]},"gitHead":"4bedce26e13ae644a80be0bd0684df223d8959bb","homepage":"https://github.com/sethvincent/create-html#readme","keywords":["html","static","sites","index.html"],"license":"MIT","main":"index.js","maintainers":[{"name":"sethvincent","email":"sethvincent@gmail.com"}],"name":"create-html","optionalDependencies":{},"repository":{"type":"git","url":"git+https://github.com/sethvincent/create-html.git"},"scripts":{"lint":"standard","test":"npm run lint && node tests/index.js | tap-spec"},"version":"4.1.0"}},"readme":"# create-html\n\nCreate the content of an html file with one function call.\n\n[![npm][npm-image]][npm-url]\n[![travis][travis-image]][travis-url]\n[![standard][standard-image]][standard-url]\n[![conduct][conduct]][conduct-url]\n\n[npm-image]: https://img.shields.io/npm/v/create-html.svg?style=flat-square\n[npm-url]: https://www.npmjs.com/package/create-html\n[travis-image]: https://img.shields.io/travis/sethvincent/create-html.svg?style=flat-square\n[travis-url]: https://travis-ci.org/sethvincent/create-html\n[standard-image]: https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square\n[standard-url]: http://npm.im/standard\n[conduct]: https://img.shields.io/badge/code%20of%20conduct-contributor%20covenant-green.svg?style=flat-square\n[conduct-url]: CONDUCT.md\n\n## Install\n\n```\nnpm install --save create-html\n```\n\n## Usage\n\n### `createHTML(options)`\n\n#### `options`\n- `title`\n- `script`\n- `scriptAsync`\n- `css`\n- `cssAsync`\n- `lang`\n- `dir`\n- `head`\n- `body`\n- `favicon`\n\n## Examples\n\nSimple example that create an html file with the title `example`:\n\n```js\nvar html = createHTML({\n  title: 'example'\n})\n```\n\nExample using all options:\n\n```js\nvar html = createHTML({\n  title: 'example',\n  script: 'example.js',\n  scriptAsync: true,\n  css: 'example.css',\n  lang: 'en',\n  dir: 'rtl',\n  head: '<meta name=\"description\" content=\"example\">',\n  body: '<p>example</p>',\n  favicon: 'favicon.png'\n})\n```\n\nCreate a file with the html contents using the fs module:\n\n```js\nvar fs = require('fs')\nvar createHTML = require('create-html')\n\nvar html = createHTML({\n  title: 'example'\n})\n\nfs.writeFile('index.html', html, function (err) {\n  if (err) console.log(err)\n})\n```\n\nCreate a stream by pairing this module with [`from2-string`](http://npmjs.com/from2-string):\n\n```js\nvar fromString = require('from2-string')\nvar createHTML = require('create-html')\n\nvar html = createHTML({\n  title: 'example'\n})\n\nvar stream = fromString(html)\nstream.pipe(process.stdout)\n```\n\nPipe content into the html that this module generates by using from2-string and [`hyperstream`](http://npmjs.com/hyperstream)\n\n```js\nvar fs = require('fs')\nvar fromString = require('from2-string')\nvar hyperstream = require('hyperstream')\nvar createHTML = require('./index')\n\nvar html = createHTML({\n  title: 'example'\n})\n\nvar hs = hyperstream({\n  'body': fs.createReadStream('some.html')\n})\n\nvar stream = fromString(html)\nstream.pipe(hs).pipe(process.stdout)\n```\n\n## CLI\n\nThis module comes with a simple command-line tool for creating html files.\n\nInstall it globally with `npm i -g create-html`\n\n### Usage:\n\n```\nUsage:\n  create-html [options]\n\nOptions:\n  --title, -t        Page title\n  --script, -s       JavaScript filename, optional\n  --script-async, -a Add async attribute to script tag\n  --css, -c          CSS filename, optional\n  --favicon, -f      Site favicon\n  --lang, -l         Language of content\n  --dir, -d          Direction of content\n  --head, -H         Content to insert into <head> tag\n  --body, -b         Content to insert into <body> tag\n  --output, -o       File name. optional. default: stdout\n  --help, -h         Show this help message\n```\n\n### Example:\n\n```\ncreate-html --title \"an example html file\"\n```\n\n### See also\n- [simple-html-index](https://github.com/mattdesl/simple-html-index)\n\n## License\n[MIT](LICENSE.md)\n","maintainers":[{"name":"sethvincent","email":"sethvincent@gmail.com"}],"time":{"modified":"2022-06-14T02:58:19.060Z","created":"2016-06-07T20:25:16.646Z","1.0.0":"2016-06-07T20:25:16.646Z","1.1.0":"2016-06-08T19:06:33.470Z","1.2.0":"2017-04-11T13:42:19.711Z","2.0.0":"2017-04-22T16:38:05.260Z","3.0.0":"2017-04-26T01:38:20.721Z","3.1.0":"2017-07-09T17:33:23.143Z","4.0.0":"2017-09-02T21:21:10.288Z","4.1.0":"2017-11-15T22:24:14.481Z"},"homepage":"https://github.com/sethvincent/create-html#readme","keywords":["html","static","sites","index.html"],"repository":{"type":"git","url":"git+https://github.com/sethvincent/create-html.git"},"author":{"name":"sethvincent"},"bugs":{"url":"https://github.com/sethvincent/create-html/issues"},"license":"MIT","readmeFilename":"README.md","users":{"ellyo":true}}