@jswork/next-trim

1.0.0 • Public • Published

next-trim

Trim space or customize string.

version license size download

installation

npm install -S @jswork/next-trim

usage

import '@jswork/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

license

Code released under the MIT license.

Dependencies (0)

    Dev Dependencies (16)

    Package Sidebar

    Install

    npm i @jswork/next-trim

    Weekly Downloads

    3

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    4.72 kB

    Total Files

    5

    Last publish

    Collaborators

    • afeiship