Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

tab-to-space

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tab-to-space

Converts tabs to approproate number of spaces

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
48
increased by128.57%
Maintainers
1
Weekly downloads
 
Created
Source

Tabs to Spaces

Convert a string containing tabs to appropriate number of spaces.

JavaScript Style Guide

Version npm NPM Downloads License GitHub Repository Size JavaScript Style Guide Travis (.org) branch

NPM

Installation

Either through cloning with git or by using npm (the recommended way):

npm install tab-to-space

Usage

const tabToSpace = require('tab-to-space')

Use var_dump while development for printing details of variables and functions.

let text = '\t\t[FirstName]\t\t\t\t=> TEST\n' +
      '        [LastName]              => TEST\n'

// convert tabs to spaces
tabToSpace(text, 4)

This will return:

'        [FirstName]             => TEST\n' +
'        [LastName]              => TEST\n'

Keywords

FAQs

Package last updated on 02 Oct 2019

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc