Skip to content

Latest commit

 

History

History
67 lines (44 loc) · 1.05 KB

readme.md

File metadata and controls

67 lines (44 loc) · 1.05 KB

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