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

trim-right-x

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

trim-right-x - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

5

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

@@ -21,3 +21,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

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

(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 right end of a string.
* @version 2.0.0
* @version 2.0.1
* @author Xotic750 <Xotic750@gmail.com>

@@ -22,3 +22,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

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

2

lib/trim-right-x.min.js
!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 right end of a string.
* @version 2.0.0
* @version 2.0.1
* @author Xotic750 <Xotic750@gmail.com>

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

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

@@ -5,0 +5,0 @@ "homepage": "https://github.com/Xotic750/trim-right-x",

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

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

@@ -33,8 +33,12 @@ **License**: [MIT](&lt;https://opensource.org/licenses/MIT&gt;)

### `module.exports(string)` ⇒ <code>undefined</code> \| <code>string</code> ⏏
### `module.exports(string)` ⇒ <code>string</code> ⏏
This method removes whitespace from the right end of a string.
**Kind**: Exported function
**Returns**: <code>undefined</code> \| <code>string</code> - The right trimmed string.
**Returns**: <code>string</code> - The right 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