Coder Social home page Coder Social logo

shinnn / modernizr-stream Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 82 KB

Create a readable stream that emits Modernizr code

Home Page: https://modernizr.com/

License: ISC License

JavaScript 100.00%
stream modernizr nodejs code-generator polyfill browser-support feature-detection

modernizr-stream's Introduction

modernizr-stream

npm version Build Status codecov

Create a readable stream that emits Modernizr code

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

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

Installation

Use npm.

npm install modernizr-stream

API

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

modernizrStream([options])

options: Object
Return: stream.Readable

It returns a readable stream that emits JavaScript code built with the Modernizr code generator.

Options

All options of modernizr.build and stream.Readable are available.

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

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

License

ISC License © 2018 - 2019 Shinnosuke Watanabe

modernizr-stream's People

Contributors

shinnn avatar

Watchers

 avatar  avatar

modernizr-stream's Issues

how to use with gulp

hi

can you please post a example on how can we use this with gulp to create the modernizr file ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.