Socket
Socket
Sign inDemoInstall

tab-to-space

Package Overview
Dependencies
0
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    tab-to-space

Converts tabs to approproate number of spaces


Version published
Weekly downloads
2
decreased by-66.67%
Maintainers
1
Install size
78.5 kB
Created
Weekly downloads
 

Readme

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

Last updated on 02 Oct 2019

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