dedentify
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

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

Package Sidebar

Install

npm i dedentify

Weekly Downloads

1

Version

0.1.0

License

MIT

Unpacked Size

3.65 kB

Total Files

5

Last publish

Collaborators

  • abranhe