v0.1.0
Sets the length of empty space (indentation) that is put before lines of text in a block.
Repository
Current version released
4 years ago
Versions
deno_text_indent
Sets the length of empty space (indentation) that is put before lines of text in a block.
Usage
import indent from 'https://deno.land/x/text_indent/mod.ts';
indent('Lorem ipsum dolor sit amet,\nconsectetur adipisicing elit,\nsed do eiusmod tempor incididunt.', 2);
Results in:
Lorem ipsum dolor sit amet,
consectetur adipisicing elit,
sed do eiusmod tempor incididunt.
Example
deno run https://deno.land/x/text_indent/example.ts
License
deno_text_indent is released under the MIT License. See the bundled LICENSE file for details.