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 1.3.1-0 to 1.3.1-testbuild-2

7

index.js
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 @@

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