cool-trim

1.1.1 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i cool-trim

Weekly Downloads

3

Version

1.1.1

License

MIT

Last publish

Collaborators

  • steelbrain