An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# mobilify [![Build Status](https://travis-ci.org/dfcreative/mobilify.svg?branch=master)](https://travis-ci.org/dfcreative/mobilify) [![unstable](https://img.shields.io/badge/stability-unstable-green.svg)](http://github.com/badges/stability-badges)

Make stream of HTML mobile-friendly

## Usage

[![npm install mobilify](https://nodei.co/npm/mobilify.png?mini=true)](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.