GithubHelp home page GithubHelp logo

isabella232 / condenseify Goto Github PK

View Code? Open in Web Editor NEW

This project forked from primus/condenseify

0.0 0.0 0.0 21 KB

Browserify transform to remove unwanted blank lines from your code.

License: MIT License

JavaScript 100.00%

condenseify's Introduction

condenseify

Version npmBuild StatusDependenciesCoverage StatusIRC channel

This module for Browserify will transform your js files condensing multiple blank (empty) lines into a single blank line. By default non empty lines containing only white spaces will be removed.

Install

npm install --save condenseify

Usage

Command Line

browserify main.js -t condenseify > bundle.js

API

Register the transform.

'use strict';

var condenseify = require('condenseify')
  , browserify = require('browserify')
  , fs = require('fs');

var b = browserify('main.js');
b.transform(condenseify);

b.bundle().pipe(fs.createWriteStream('bundle.js'));

Options

If you want to keep the blank (non empty) lines you can use the keep-non-empty option. Reusing the examples above, this translates into:

browserify main.js -t [ condenseify --keep-non-empty ] > bundle.js

for the command line and

b.transform(condenseify, { 'keep-non-empty': true });

for the API.

License

MIT

condenseify's People

Contributors

3rd-eden avatar greenkeeper[bot] avatar lpinca avatar

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.