Namespace Pollution Mechanism
Miss any of our Open RFC calls?Watch the recordings here! »

s-trimmer

1.0.0 • Public • Published

s-trimmer

NPM version NPM downloads

About

Format spaces from the left and right end of a string and between strings

How to Install

First, install the library in your project by npm:

$ npm install s-trimmer

Or Yarn:

$ yarn add s-trimmer

Getting Started

Connect libary to project using ES6 import:

import sTrimmer from 's-trimmer';

Or CommonJS:

const sTrimmer = require('s-trimmer');

Next use library:

const value = 'lorem  ipsum dolor  ';
 
const formattedValue = sTrimmer(value); // 'lorem ipsum dolor'

Params

Type Description
string value to be formatted

License

This project is licensed under the MIT License © 2020-present Jakub Biesiada

Install

npm i s-trimmer

DownloadsWeekly Downloads

2

Version

1.0.0

License

MIT

Unpacked Size

4.36 kB

Total Files

9

Last publish

Collaborators

  • avatar