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.
- Host: GitHub
- URL: https://github.com/abranhe/dedentify
- Owner: abranhe
- License: mit
- Created: 2020-01-03T06:37:12.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-01-03T06:52:03.000Z (over 6 years ago)
- Last Synced: 2025-02-28T10:09:39.362Z (over 1 year ago)
- Topics: dedent, dedentify, javascipt, strings
- Language: JavaScript
- Homepage: https://git.io/dedentify
- Size: 3.91 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- Funding: .github/funding.yml
- License: license
Awesome Lists containing this project
README
# dedentify [](https://github.com/abranhe/dedentify) [](https://travis-ci.com/abranhe/dedentify) [](https://github.com/abranhe/dedentify/blob/master/license) [](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)