Skip to content

abranhe/dedentify

Repository files navigation

dedentify Github Travis License npm

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

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