Socket
Socket
Sign inDemoInstall

detabbify

Package Overview
Dependencies
6
Maintainers
2
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    detabbify

Browserify transform to strip tabs from bundles


Version published
Weekly downloads
7
Maintainers
2
Install size
188 kB
Created
Weekly downloads
 

Readme

Source

detabbify

NPM Version test license: MIT downloads

Replace tabs with spaces when running files through browserify.

Options

spaces

Configure how many spaces each \t character will be replaced with. Defaults to 4 spaces.

Usage

CLI

// Recommended to run globally
$ browserify ./file-with-spaces.js -g detabbify ./output.js

// Specify number of spaces
$ browserify ./file-with-spaces.js -g [ detabbify --spaces 4 ] ./output.js

API

var build = browserify("./file-with-spaces.js");

// Recommended to run globally
build.transform(detabbify, { global : true });

// Specify number of spaces
build.transform(detabbify, { global : true, spaces : 4 });

Keywords

FAQs

Last updated on 29 Jan 2023

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