# modernizr-stream

> Create a readable stream that emits Modernizr code

Latest version **3.0.0** (published 2019-05-02) · ISC license · 0 weekly downloads

## Install

```sh
npm install modernizr-stream
pnpm add modernizr-stream
yarn add modernizr-stream
bun add modernizr-stream
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.0.0 |
| Published | 2019-05-02 |
| First published | 2016-02-04 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 5.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Shinnosuke Watanabe |
| Maintainers | shinnn |
| Keywords | modernizr, build, generate, code, script, source, stream, readable, emit, emitter |

## Links

- npm: https://www.npmjs.com/package/modernizr-stream
- Repository: https://github.com/shinnn/modernizr-stream
- Homepage: https://github.com/shinnn/modernizr-stream#readme
- Issues: https://github.com/shinnn/modernizr-stream/issues
- npm.io page: https://npm.io/package/modernizr-stream

## Dependencies (4)

- [lodash](https://npm.io/package/lodash.md) ^4.17.11
- [modernizr](https://npm.io/package/modernizr.md) ^3.7.1
- [inspect-with-kind](https://npm.io/package/inspect-with-kind.md) ^1.0.5
- [json-stable-stringify-without-jsonify](https://npm.io/package/json-stable-stringify-without-jsonify.md) ^1.0.1

## Alternatives

- [async-exit-hook](https://npm.io/package/async-exit-hook.md) — 3.7M weekly downloads
- [evnty](https://npm.io/package/evnty.md) — 7.2K weekly downloads
- [eleventy-plugin-asciidoc](https://npm.io/package/eleventy-plugin-asciidoc.md) — 3.5K weekly downloads
- [@jswork/next-get2get](https://npm.io/package/@jswork/next-get2get.md) — 945 weekly downloads
- [@dashersw/axon](https://npm.io/package/@dashersw/axon.md) — 934 weekly downloads

## Recent versions

- 3.0.0 (latest) — 2019-05-02
- 2.0.0-2 (next) — 2019-01-08
- 2.0.0 — 2019-01-08
- 2.0.0-1 — 2019-01-08
- 2.0.0-0 — 2019-01-08
- 1.1.1 — 2018-02-08
- 1.1.0 — 2018-02-07
- 1.0.0 — 2016-02-08
- 0.1.0 — 2016-02-05
- 0.0.0 — 2016-02-04

## README

# modernizr-stream

[![npm version](https://img.shields.io/npm/v/modernizr-stream.svg)](https://www.npmjs.com/package/modernizr-stream)
[![Build Status](https://travis-ci.com/shinnn/modernizr-stream.svg?branch=master)](https://travis-ci.com/shinnn/modernizr-stream)
[![codecov](https://codecov.io/gh/shinnn/modernizr-stream/branch/master/graph/badge.svg)](https://codecov.io/gh/shinnn/modernizr-stream)

Create a [readable stream](https://nodejs.org/api/stream.html#stream_class_stream_readable) that emits [Modernizr](https://modernizr.com/) code

```javascript
const modernizrStream = require('modernizr-stream');

modernizrStream().pipe(process.stdout);
/*!
 * modernizr v3.6.0
 * Build https://modernizr.com/download?--dontmin
 ...
*/
```

## Installation

[Use](https://docs.npmjs.com/cli/install) [npm](https://docs.npmjs.com/about-npm/).

```
npm install modernizr-stream
```

## API

```javascript
const modernizrStream = require('modernizr-stream');
```

### modernizrStream([*options*])

*options*: `Object`  
Return: [`stream.Readable`](https://nodejs.org/api/stream.html#stream_class_stream_readable_1)

It returns a readable stream that emits JavaScript code built with the [Modernizr code generator](https://www.npmjs.com/package/modernizr#building).

#### Options

All options of [`modernizr.build`](https://github.com/Modernizr/Modernizr#building) and [`stream.Readable`](https://nodejs.org/api/stream.html#stream_new_stream_readable_options) are available.

```javascript
modernizrStream().on('data', data => {
  data.length; //=> 5497
});

modernizrStream({minify: true}).on('data', data => {
  data.length; //=> 1165
});
```

## License

[ISC License](./LICENSE) © 2018 - 2019 Shinnosuke Watanabe

---
_Source: https://npm.io/package/modernizr-stream · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
