Skip to content
This repository has been archived by the owner on Aug 4, 2021. It is now read-only.

Commit

Permalink
v0.0.3
Browse files Browse the repository at this point in the history
Cleanup readme
  • Loading branch information
Sergej Müller committed Jun 17, 2016
1 parent 8247bb0 commit 1dd7bd6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 25 deletions.
32 changes: 8 additions & 24 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,31 +37,15 @@ Examples
var ltrim = require('ltrim');


/**
* Strip whitespace from the beginning of a string
*/
/* Strip whitespace from the beginning of a string */
ltrim( ' Hello ' ) + ' World' // →Hello World

ltrim( ' Hello ' ) + ' World' // Hello World
/* Strip multiple special chars from the beginning of a string */
ltrim( '... Hello World ...', ' .' ); // →Hello World ...

/* Strip multiple chars from the beginning of a string */
ltrim( 'Hello World', 'Hdle' ); // →o World

/**
* Strip multiple special chars from the beginning of a string
* e.g. space & dot
*/

ltrim( '... Hello World ...', ' .' ); // Hello World ...


/**
* Strip multiple chars from the beginning of a string
*/

ltrim( 'Hello World', 'Hdle' ); // o World


/**
* Strip url protocol from the beginning of a string
*/

ltrim( 'https://goo.gl/', '/:htps' ); // goo.gl/
/* Strip url protocol from the beginning of a string */
ltrim( 'https://goo.gl/', '/:htps' ); // →goo.gl/
```
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ltrim",
"version": "0.0.2",
"version": "0.0.3",
"description": "Strip whitespace - or other characters - from the beginning of a string",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 1dd7bd6

Please sign in to comment.