0.1.2 • Published 7 years ago

trim-char v0.1.2

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

trim-char

Travis Coveralls branch license

Trim characters from a string.

Install

$ npm install --save trim-char

Usage

import trim from 'trim-char';

trim('foobar', 1); // -> ooba
trim('foobar', 2); // -> ob

API

trim(value, length)

Trims the value on both ends.

value

Type: String

The string to trim.

length

Type: Number

How much characters to cut off on each end.

License

MIT © Vu Tran