Skip to content

Jameskmonger/indenthero

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

indenthero

The hero you need when indenting text.

Usage

var indenthero = require('indenthero');

indenthero('i am a single line'); // '    i am a single line'

indenthero('i am two\nlines of text'); //'    i am two\n    lines of text'

// You can also specify the amount to indent by
indenthero('one space', 1); // ' one space'
indenthero('five spaces', 5); // '     five spaces'

Installation

npm install indenthero --save

License

MIT

About

Easily indent a block of text

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published