1.1.1 • Published 8 years ago

cool-trim v1.1.1

Weekly downloads
362
License
MIT
Repository
github
Last release
8 years ago

Cool-Trim

Cool-Trim is the only thing you'll need to trim your strings

Everything's awesome

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