Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/afeiship/next-indent
Indent string with indent-string.
https://github.com/afeiship/next-indent
indent next string
Last synced: 20 days ago
JSON representation
Indent string with indent-string.
- Host: GitHub
- URL: https://github.com/afeiship/next-indent
- Owner: afeiship
- License: mit
- Created: 2020-06-19T08:51:17.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-11-21T01:29:01.000Z (about 4 years ago)
- Last Synced: 2024-10-22T14:46:23.601Z (2 months ago)
- Topics: indent, next, string
- Language: JavaScript
- Size: 7.81 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# next-indent
> Indent string with indent-string.[![version][version-image]][version-url]
[![license][license-image]][license-url]
[![size][size-image]][size-url]
[![download][download-image]][download-url]## installation
```bash
npm install -S @jswork/next-indent
```## usage
```js
import '@jswork/next-indent';
const str = 'hello';nx.indent(str, 2);
// hello
```## license
Code released under [the MIT license](https://github.com/afeiship/next-indent/blob/master/LICENSE.txt).[version-image]: https://img.shields.io/npm/v/@jswork/next-indent
[version-url]: https://npmjs.org/package/@jswork/next-indent[license-image]: https://img.shields.io/npm/l/@jswork/next-indent
[license-url]: https://github.com/afeiship/next-indent/blob/master/LICENSE.txt[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/next-indent
[size-url]: https://github.com/afeiship/next-indent/blob/master/dist/next-indent.min.js[download-image]: https://img.shields.io/npm/dm/@jswork/next-indent
[download-url]: https://www.npmjs.com/package/@jswork/next-indent