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

strman.lefttrim

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.lefttrim - npm Package Compare versions

Comparing version 2.0.0-pre-release-0 to 2.0.0

31

index.js

@@ -7,10 +7,27 @@ var replace = require('strman.replace')

/**
* @module leftTrim
* @description
* Remove all spaces on left.
* @playground
* var leftTrim = require('strman').leftTrim;
* let title = " strman";
* let result = leftTrim(title);
* @param {String} value - The String!.
* @params {String = ' '} char - if you need remove other char on left boarders.
* @return {String} - String without left boarders spaces.
* ## Install
* Install all functions of strman
* ```sh
* yarn add strman
* ```
* or just the leftTrim function
* ```sh
* yarn add strman.lefttrim
* ```
* ## Usage
* ```javascript
* import { leftTrim } from 'strman'
* // OR
* import leftTrim from 'strman.lefttrim'
* ```
* @param {String} value The String!
* @param {String} [char = ''] if you need remove other char on left boarders.
* @example
* const title = ' strman'
* leftTrim(title)
* // => 'strman'
* @returns {String} String without left boarders spaces.
*/

@@ -17,0 +34,0 @@ exports.default = function (value) {

{
"name": "strman.lefttrim",
"version": "2.0.0-pre-release-0",
"version": "2.0.0",
"description": "The [strman](https://github.com/dleitee/strman) method `lefttrim` 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.lefttrim v2.0.0-pre-release-0
# strman.lefttrim v2.0.0

@@ -4,0 +4,0 @@ The [strman](https://github.com/dleitee/strman) method `lefttrim` 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