1.0.3 • Published 4 years ago

@feizheng/next-trim v1.0.3

Weekly downloads
4
License
MIT
Repository
-
Last release
4 years ago

next-trim

Trim space or customize string.

installation

npm install -S @feizheng/next-trim

usage

import '@feizheng/next-trim';

//1. trim space:
nx.trim('  abc');
nx.trim('  abc  ');
nx.trim('abc  ');

// abc

// 2.trim char
nx.trim('/sso-login.html','/');
nx.trim('//sso-login.html','/');

// sso-login.html
1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago