https://github.com/dy/mobilify
:iphone: Make stream of html mobile-friendly
https://github.com/dy/mobilify
indexhtmlify
Last synced: 9 months ago
JSON representation
:iphone: Make stream of html mobile-friendly
- Host: GitHub
- URL: https://github.com/dy/mobilify
- Owner: dy
- License: mit
- Created: 2017-11-05T03:23:58.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-11-05T03:44:11.000Z (over 8 years ago)
- Last Synced: 2024-12-28T17:45:45.027Z (over 1 year ago)
- Topics: indexhtmlify
- Language: JavaScript
- Homepage:
- Size: 5.86 KB
- Stars: 4
- Watchers: 4
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# 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.