Socket
Socket
Sign inDemoInstall

condenseify

Package Overview
Dependencies
18
Maintainers
6
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    condenseify

Browserify transform to remove unwanted blank lines from your code


Version published
Weekly downloads
10
increased by42.86%
Maintainers
6
Install size
270 kB
Created
Weekly downloads
 

Readme

Source

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

Keywords

FAQs

Last updated on 21 Mar 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc