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

trim-x

Package Overview
Dependencies
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

trim-x - npm Package Compare versions

Comparing version 2.0.1 to 2.0.2

3

index.js
/**
* @file This method removes whitespace from the left and right end of a string.
* @version 2.0.1
* @version 2.0.2
* @author Xotic750 <Xotic750@gmail.com>

@@ -19,2 +19,3 @@ * @copyright Xotic750

* @param {string} string - The string to trim the whitespace from.
* @throws {TypeError} If string is null or undefined or not coercible.
* @returns {string} The trimmed string.

@@ -21,0 +22,0 @@ * @example

(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.returnExports = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(_dereq_,module,exports){
/**
* @file This method removes whitespace from the left and right end of a string.
* @version 2.0.1
* @version 2.0.2
* @author Xotic750 <Xotic750@gmail.com>

@@ -20,2 +20,3 @@ * @copyright Xotic750

* @param {string} string - The string to trim the whitespace from.
* @throws {TypeError} If string is null or undefined or not coercible.
* @returns {string} The trimmed string.

@@ -270,3 +271,3 @@ * @example

* @file This method removes whitespace from the left end of a string.
* @version 2.0.0
* @version 2.0.1
* @author Xotic750 <Xotic750@gmail.com>

@@ -289,3 +290,4 @@ * @copyright Xotic750

* @param {string} string - The string to trim the left end whitespace from.
* @returns {undefined|string} The left trimmed string.
* @throws {TypeError} If string is null or undefined or not coercible.
* @returns {string} The left trimmed string.
* @example

@@ -303,3 +305,3 @@ * var trimLeft = require('trim-left-x');

* @file This method removes whitespace from the right end of a string.
* @version 2.0.0
* @version 2.0.1
* @author Xotic750 <Xotic750@gmail.com>

@@ -322,3 +324,4 @@ * @copyright Xotic750

* @param {string} string - The string to trim the right end whitespace from.
* @returns {undefined|string} The right trimmed string.
* @throws {TypeError} If string is null or undefined or not coercible.
* @returns {string} The right trimmed string.
* @example

@@ -325,0 +328,0 @@ * var trimRight = require('trim-right-x');

!function(f){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=f();else if("function"==typeof define&&define.amd)define([],f);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).returnExports=f()}}(function(){return function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a="function"==typeof require&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n||e)},l,l.exports,e,t,n,r)}return n[o].exports}for(var i="function"==typeof require&&require,o=0;o<r.length;o++)s(r[o]);return s}({1:[function(_dereq_,module,exports){/**
* @file This method removes whitespace from the left and right end of a string.
* @version 2.0.1
* @version 2.0.2
* @author Xotic750 <Xotic750@gmail.com>

@@ -53,3 +53,3 @@ * @copyright Xotic750

* @file This method removes whitespace from the left end of a string.
* @version 2.0.0
* @version 2.0.1
* @author Xotic750 <Xotic750@gmail.com>

@@ -62,3 +62,3 @@ * @copyright Xotic750

* @file This method removes whitespace from the right end of a string.
* @version 2.0.0
* @version 2.0.1
* @author Xotic750 <Xotic750@gmail.com>

@@ -65,0 +65,0 @@ * @copyright Xotic750

{
"name": "trim-x",
"version": "2.0.1",
"version": "2.0.2",
"description": "This method removes whitespace from the left and right end of a string.",

@@ -32,4 +32,4 @@ "homepage": "https://github.com/Xotic750/trim-x",

"dependencies": {
"trim-left-x": "^2.0.0",
"trim-right-x": "^2.0.0"
"trim-left-x": "^2.0.1",
"trim-right-x": "^2.0.1"
},

@@ -36,0 +36,0 @@ "devDependencies": {

@@ -26,3 +26,3 @@ <a href="https://travis-ci.org/Xotic750/trim-x"

**Version**: 2.0.1
**Version**: 2.0.2
**Author**: Xotic750 <Xotic750@gmail.com>

@@ -38,3 +38,7 @@ **License**: [MIT](&lt;https://opensource.org/licenses/MIT&gt;)

**Returns**: <code>string</code> - The trimmed string.
**Throws**:
- <code>TypeError</code> If string is null or undefined or not coercible.
| Param | Type | Description |

@@ -41,0 +45,0 @@ | --- | --- | --- |

Sorry, the diff of this file is not supported yet

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