# left-indent

> leftIndent (text, direction = 'forward', tabSize = 2) => indentedText

Latest version **0.0.6** (published 2018-07-05) · MIT license · 0 weekly downloads

## Install

```sh
npm install left-indent
pnpm add left-indent
yarn add left-indent
bun add left-indent
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.6 |
| Published | 2018-07-05 |
| First published | 2018-04-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 102.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | unshift |
| Maintainers | menubar |

## Links

- npm: https://www.npmjs.com/package/left-indent
- Repository: https://github.com/unshift/left-indent
- Homepage: https://github.com/unshift/left-indent#readme
- Issues: https://github.com/unshift/left-indent/issues
- npm.io page: https://npm.io/package/left-indent

## Recent versions

- 0.0.6 (latest) — 2018-07-05
- 0.0.5 — 2018-07-05
- 0.0.4 — 2018-04-09
- 0.0.3 — 2018-04-08
- 0.0.2 — 2018-04-08
- 0.0.1 — 2018-04-08

## README

## left-indent

leftIndent (text, direction = 'forward', tabSize = 2) => indentedText

## Examples

```js
const { leftIndent } = require('left-indent')

leftIndent (' some text', 'forward') 
// => '  some text' 
// + 1 space

leftIndent ('  some text', 'forward')
// => + 2 spaces
// => '    some text'

leftIndent (' some text', 'backward') 
// => 'some text' 
// - 1 space

leftIndent ('  some text', 'backward')
// => - 2 spaces
// => '    some text'

leftIndent ('some text', 'backward')
// => - 0 spaces
// => 'some text'

```

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