strman.trim
Advanced tools
Comparing version 2.0.0-pre-release-0 to 2.0.0
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. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
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
36
0
+ Addedstrman.lefttrim@2.0.0(transitive)
+ Addedstrman.replace@2.0.0(transitive)
+ Addedstrman.righttrim@2.0.0(transitive)
- Removedstrman.lefttrim@2.0.0-pre-release-0(transitive)
- Removedstrman.replace@2.0.0-pre-release-0(transitive)
- Removedstrman.righttrim@2.0.0-pre-release-0(transitive)
Updatedstrman.lefttrim@2.0.0
Updatedstrman.righttrim@2.0.0