cool-trim
v1.1.1
Published
Trim with maximum coolness
Downloads
1,538
Readme
Cool-Trim
Cool-Trim is the only thing you'll need to trim your strings
Installation
npm install --save cool-trim
API
function trim(subject: string, indent: number = 0): string
module.exports = trim
Examples
import trim from 'cool-trim'
trim`
Top
Child
Another Top
` === `Top
Child
AnotherTop`; // true
License
This project is licensed under the terms of MIT License, see the LICENSE file for more info