strman.righttrim
Advanced tools
Comparing version 2.0.0-pre-release-0 to 2.0.0
35
index.js
@@ -6,14 +6,30 @@ var replace = require('strman.replace') | ||
/** | ||
* @module rightTrim | ||
* @description | ||
* Remove all spaces on right. | ||
* @playground | ||
* var rightTrim = require('strman').rightTrim; | ||
* let title = "strman "; | ||
* let result = rightTrim(title); | ||
* @param {String} value - The String!. | ||
* @params {String = ' '} char - if you need remove other char on right boarders. | ||
* @return {String} - String without right boarders spaces. | ||
* ## Install | ||
* Install all functions of strman | ||
* ```sh | ||
* yarn add strman | ||
* ``` | ||
* or just the rightTrim function | ||
* ```sh | ||
* yarn add strman.righttrim | ||
* ``` | ||
* ## Usage | ||
* ```javascript | ||
* import { rightTrim } from 'strman' | ||
* // OR | ||
* import rightTrim from 'strman.righttrim' | ||
* ``` | ||
* @param {String} value The String! | ||
* @param {String} [char = ' '] if you need remove other char on right boarders. | ||
* @example | ||
* const title = 'strman ' | ||
* rightTrim(title) | ||
* // => 'strman' | ||
* @returns {String} String without right boarders spaces. | ||
*/ | ||
var rightTrim = function rightTrim(value) { | ||
exports.default = function (value) { | ||
var char = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ' '; | ||
@@ -23,3 +39,2 @@ return replace(value, char + '+$', ''); | ||
exports.default = rightTrim; | ||
module.exports = exports['default']; |
{ | ||
"name": "strman.righttrim", | ||
"version": "2.0.0-pre-release-0", | ||
"version": "2.0.0", | ||
"description": "The [strman](https://github.com/dleitee/strman) method `righttrim` exported as a [Node.js](https://nodejs.org/) module.", | ||
@@ -20,3 +20,3 @@ "main": "index.js", | ||
"dependencies": { | ||
"strman.replace":"2.0.0-pre-release-0" | ||
"strman.replace":"2.0.0" | ||
}, | ||
@@ -23,0 +23,0 @@ "author": "Daniel Leite de Oliveira <dleitee@gmail.com>", |
# strman.righttrim v2.0.0-pre-release-0 | ||
# strman.righttrim v2.0.0 | ||
@@ -4,0 +4,0 @@ The [strman](https://github.com/dleitee/strman) method `righttrim` 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
3230
35
0
+ Addedstrman.replace@2.0.0(transitive)
- Removedstrman.replace@2.0.0-pre-release-0(transitive)
Updatedstrman.replace@2.0.0