strman.trim
Advanced tools
Comparing version
31
index.js
@@ -8,10 +8,27 @@ var leftTrim = require('strman.lefttrim') | ||
/** | ||
* @module trim | ||
* @description | ||
* Remove all spaces on left and right. | ||
* @playground | ||
* var trim = require('strman').trim; | ||
* let title = " strman "; | ||
* let result = trim(title); | ||
* @params {String} value - String to remove spaces. | ||
* @params {String = ' '} char - if you need remove other char on boarders. | ||
* @return {String} - String without boarders spaces. | ||
* ## Install | ||
* Install all functions of strman | ||
* ```sh | ||
* yarn add strman | ||
* ``` | ||
* or just the trim function | ||
* ```sh | ||
* yarn add strman.trim | ||
* ``` | ||
* ## Usage | ||
* ```javascript | ||
* import { trim } from 'strman' | ||
* // OR | ||
* import trim from 'strman.trim' | ||
* ``` | ||
* @param {String} value - String to remove spaces. | ||
* @param {String} [char = ' '] - if you need remove other char on boarders. | ||
* @example | ||
* const title = ' strman ' | ||
* trim(title) | ||
* // => 'strman' | ||
* @returns {String} String without boarders spaces. | ||
*/ | ||
@@ -18,0 +35,0 @@ exports.default = function (value) { |
{ | ||
"name": "strman.trim", | ||
"version": "2.0.0-pre-release-0", | ||
"version": "2.0.0", | ||
"description": "The [strman](https://github.com/dleitee/strman) method `trim` exported as a [Node.js](https://nodejs.org/) module.", | ||
@@ -20,4 +20,4 @@ "main": "index.js", | ||
"dependencies": { | ||
"strman.lefttrim":"2.0.0-pre-release-0", | ||
"strman.righttrim":"2.0.0-pre-release-0" | ||
"strman.lefttrim":"2.0.0", | ||
"strman.righttrim":"2.0.0" | ||
}, | ||
@@ -24,0 +24,0 @@ "author": "Daniel Leite de Oliveira <dleitee@gmail.com>", |
# strman.trim v2.0.0-pre-release-0 | ||
# strman.trim v2.0.0 | ||
@@ -4,0 +4,0 @@ The [strman](https://github.com/dleitee/strman) method `trim` exported as a [Node.js](https://nodejs.org/) module. |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
3253
6.69%36
89.47%0
-100%+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
Updated
Updated