https://github.com/justjavac/deno_text_indent
Sets the length of empty space (indentation) that is put before lines of text in a block.
https://github.com/justjavac/deno_text_indent
deno deno-mod deno-module deno-text-indent string text
Last synced: 2 months ago
JSON representation
Sets the length of empty space (indentation) that is put before lines of text in a block.
- Host: GitHub
- URL: https://github.com/justjavac/deno_text_indent
- Owner: justjavac
- License: mit
- Created: 2020-08-21T12:52:28.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-09-05T15:45:43.000Z (almost 6 years ago)
- Last Synced: 2026-03-18T08:52:29.302Z (4 months ago)
- Topics: deno, deno-mod, deno-module, deno-text-indent, string, text
- Language: TypeScript
- Homepage:
- Size: 22.5 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# deno_text_indent
[](https://github.com/justjavac/deno_text_indent/releases)
[](https://github.com/justjavac/deno_text_indent/actions)
[](https://github.com/justjavac/deno_text_indent/blob/master/LICENSE)
Sets the length of empty space (indentation) that is put before lines of text in a block.
## Usage
```js
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
```bash
deno run https://deno.land/x/text_indent/example.ts
```
## License
[deno_text_indent](https://github.com/justjavac/deno_text_indent) is released under the MIT License. See the bundled [LICENSE](./LICENSE) file for details.