0.1.0 • Published 4 years ago

dedentify v0.1.0

Weekly downloads
13
License
MIT
Repository
github
Last release
4 years ago

dedentify Github Travis License npm

Remove indentation inside strings.

Install

$ npm install dedentify
npm
$ npm install dedentify
yarn
$ yarn add dedentify
Github Registry
$ npm install abranhe@dedentify

Usage

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