An open API service indexing awesome lists of open source software.

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.

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