strman.trim
Advanced tools
Comparing version 1.3.1-0 to 1.3.1-testbuild-2
var leftTrim = require('strman.lefttrim') | ||
var rightTrim = require('strman.righttrim')Object.defineProperty(exports, "__esModule", { | ||
var rightTrim = require('strman.righttrim') | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
/** | ||
@@ -17,3 +17,3 @@ * Remove all spaces on left and right. | ||
*/ | ||
var trim = function trim(value) { | ||
exports.default = function (value) { | ||
var char = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ' '; | ||
@@ -23,3 +23,2 @@ return leftTrim(rightTrim(value, char), char); | ||
exports.default = trim; | ||
module.exports = exports['default']; |
{ | ||
"name": "strman.trim", | ||
"version": "1.3.1-0", | ||
"description": "A Javascript string manipulation library without npm dependences.", | ||
"version": "1.3.1-testbuild-2", | ||
"description": "The [strman](https://github.com/dleitee/strman) method `trim` exported as a [Node.js](https://nodejs.org/) module.", | ||
"main": "index.js", | ||
@@ -20,4 +20,4 @@ "repository": { | ||
"dependencies": { | ||
"strman.lefttrim":"1.3.1", | ||
"strman.righttrim":"1.3.1" | ||
"strman.lefttrim":"1.3.1-testbuild-2", | ||
"strman.righttrim":"1.3.1-testbuild-2" | ||
}, | ||
@@ -24,0 +24,0 @@ "author": "Daniel Leite de Oliveira <dleitee@gmail.com>", |
# strman.trim v1.3.1 | ||
# strman.trim v1.3.1-testbuild-2 | ||
@@ -16,3 +16,3 @@ The [strman](https://github.com/dleitee/strman) method `trim` exported as a [Node.js](https://nodejs.org/) module. | ||
```js | ||
var range = require('strman.trim'); | ||
var trim = require('strman.trim'); | ||
``` | ||
@@ -19,0 +19,0 @@ |
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
3041
+ Addedstrman.lefttrim@1.3.1-testbuild-2(transitive)
+ Addedstrman.replace@1.3.1-testbuild-2(transitive)
+ Addedstrman.righttrim@1.3.1-testbuild-2(transitive)