An open API service indexing awesome lists of open source software.

https://github.com/abranhe/dedentify

Remove indentation inside strings.
https://github.com/abranhe/dedentify

dedent dedentify javascipt strings

Last synced: about 1 year ago
JSON representation

Remove indentation inside strings.

Awesome Lists containing this project

README

          

# dedentify [![Github](https://github.com/abranhe/dedentify/workflows/build/badge.svg)](https://github.com/abranhe/dedentify) [![Travis](https://travis-ci.com/abranhe/dedentify.svg?branch=master)](https://travis-ci.com/abranhe/dedentify) [![License](https://img.shields.io/github/license/abranhe/dedentify.svg)](https://github.com/abranhe/dedentify/blob/master/license) [![npm](https://img.shields.io/npm/v/dedentify.svg?logo=npm)](https://npmjs.org/dedentify)

> Remove indentation inside strings.

## Install

```
$ npm install dedentify
```

Other options?

###### npm

```
$ npm install dedentify
```

###### yarn

```
$ yarn add dedentify
```

###### Github Registry

```
$ npm install abranhe@dedentify
```

## Usage

```js
const dedentify = require('dedentify');

dedentify`
This
is
Awesome
`;

// => `
// This
// is
// Awesome
// `
```

## API

### dedentify(input)

#### input

Type: `string` | `TemplateStringsArray`

The template string to deindent.

## License

MIT © [Abraham Hernandez](https://abranhe.com)