Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

strman.trim

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

strman.trim - npm Package Compare versions

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.

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc