mobilify
Version:
Make stream of html mobile-friendly
35 lines (22 loc) • 1.27 kB
Markdown
# mobilify [](https://travis-ci.org/dfcreative/mobilify) [](http://github.com/badges/stability-badges)
Make stream of HTML mobile-friendly
## Usage
[](https://npmjs.org/package/mobilify/)
```sh
$ browserify index.js | indexhtmlify | html-inject-meta | html-inject-github-corner | mobilify > index.html
```
Or
```js
var mobilify = require('mobilify')
fs.createReadStream('index.html')
.pipe(mobilify())
.pipe(fs.createWriteStream('output.html'))
```
It takes a stream of html and includes mobile meta tags, [`normalize.css`](https://www.npmjs.com/package/normalize.css), [polyfills typed arrays methods](https://npmjs.org/package/typedarray-methods) and `Array.fill`.
### See Also
- [enable-mobile](https://github.com/dfreative/enable-mobile)
- [indexhtmlify](https://github.com/dominictarr/indexhtmlify)
- [html-inject-meta](https://github.com/rreusser/html-inject-meta)
- [html-inject-github-corner](https://github.com/rreusser/html-inject-github-corner)
### License
© 2017 Dmitry Ivanov. MIT License.