# tab-to-space

> Converts tabs to approproate number of spaces

Latest version **1.0.1** (published 2019-10-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install tab-to-space
pnpm add tab-to-space
yarn add tab-to-space
bun add tab-to-space
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2019-10-02 |
| First published | 2019-10-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.10.0 |
| Dependencies | 0 |
| Unpacked size | 78.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Ankur Narkhede |
| Maintainers | smartankur4u |
| Keywords | tabs, spaces, tab, space, convert, indent, indentation |

## Links

- npm: https://www.npmjs.com/package/tab-to-space
- Repository: https://github.com/smartankur4u/tabs-to-spaces
- Homepage: https://github.com/smartankur4u/tabs-to-spaces#readme
- Issues: https://github.com/smartankur4u/tabs-to-spaces/issues
- npm.io page: https://npm.io/package/tab-to-space

## Alternatives

- [@lexical/table](https://npm.io/package/@lexical/table.md) — 3.0M weekly downloads
- [mantine-datatable](https://npm.io/package/mantine-datatable.md) — 98.2K weekly downloads
- [react-native-collapsible-tab-view](https://npm.io/package/react-native-collapsible-tab-view.md) — 70.6K weekly downloads
- [@handsontable/vue3](https://npm.io/package/@handsontable/vue3.md) — 16.1K weekly downloads
- [vuewordcloud](https://npm.io/package/vuewordcloud.md) — 7.2K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2019-10-02
- 1.0.0 — 2019-10-01

## README

# Tabs to Spaces
Convert a string containing tabs to appropriate number of spaces.

[![JavaScript Style Guide](https://cdn.rawgit.com/standard/standard/master/badge.svg)](https://github.com/standard/standard)

![Version npm](https://img.shields.io/npm/v/tab-to-space.svg?style=for-the-badge)
![NPM Downloads](https://img.shields.io/npm/dt/tab-to-space.svg?style=for-the-badge)
![License](https://img.shields.io/npm/l/tab-to-space.svg?style=for-the-badge)
![GitHub Repository Size](https://img.shields.io/github/repo-size/smartankur4u/tabs-to-spaces.svg?style=for-the-badge)
[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg?style=for-the-badge)](https://standardjs.com)
[![Travis (.org) branch](https://img.shields.io/travis/smartankur4u/tabs-to-spaces/master?style=for-the-badge)](https://travis-ci.org/smartankur4u/tabs-to-spaces)

[![NPM](https://nodei.co/npm/tab-to-space.png?downloads=true&downloadRank=true)](https://nodei.co/npm/var_dump/)


## Installation

Either through cloning with git or by using [npm](http://npmjs.org) (the recommended way):

```bash
npm install tab-to-space
```


## Usage

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

```

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

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

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

This will return:

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

```

---
_Source: https://npm.io/package/tab-to-space · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
