https://github.com/afeiship/next-trim-nl
Trim enter/return char.
https://github.com/afeiship/next-trim-nl
next nl trim
Last synced: 25 days ago
JSON representation
Trim enter/return char.
- Host: GitHub
- URL: https://github.com/afeiship/next-trim-nl
- Owner: afeiship
- License: mit
- Created: 2019-09-06T09:45:10.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2021-01-09T08:17:37.000Z (over 5 years ago)
- Last Synced: 2025-06-26T13:48:54.580Z (12 months ago)
- Topics: next, nl, trim
- Language: JavaScript
- Size: 10.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# next-trim-nl
> Trim enter/return char.
[![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-trim-nl
```
## usage
```js
import '@jswork/next-trim-nl';
nx.trimNl(`少年时
想碰到一个聂小倩
拼了性命爱一场
天亮前带着她的魂魄远走他乡`);
```
## license
Code released under [the MIT license](https://github.com/afeiship/next-trim-nl/blob/master/LICENSE.txt).
[version-image]: https://img.shields.io/npm/v/@jswork/next-trim-nl
[version-url]: https://npmjs.org/package/@jswork/next-trim-nl
[license-image]: https://img.shields.io/npm/l/@jswork/next-trim-nl
[license-url]: https://github.com/afeiship/next-trim-nl/blob/master/LICENSE.txt
[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/next-trim-nl
[size-url]: https://github.com/afeiship/next-trim-nl/blob/master/dist/next-trim-nl.min.js
[download-image]: https://img.shields.io/npm/dm/@jswork/next-trim-nl
[download-url]: https://www.npmjs.com/package/@jswork/next-trim-nl