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

Commit

Permalink
Release 1.0.1 (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
sergejmueller committed Nov 25, 2020
1 parent d1d9b1f commit 21d9144
Show file tree
Hide file tree
Showing 5 changed files with 57 additions and 60 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
node_modules
.npm
logs
*.log
.idea
.DS_Store
14 changes: 8 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
language: node_js
node_js:
- "6"
- "5"
- "4"
- "0.12"
- "0.11"
- "0.10"
- 14
- 13
- 12
- 10
- 9
- 8
- 6
- 4
13 changes: 5 additions & 8 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,26 +1,23 @@
# rtrim / CHANGELOG


### v1.0.0 (2016-10-28)
### v1.0.1 (2020-11-25)
* Cleanup code
* Update Node.js versions at `.travis.yml`

### v1.0.0 (2016-10-28)
* Add ESLint with `node` plugin
* Remove `*.lock` from `.gitignore`
* Refactor `package.json`
* Text changes in `README.md`
* Add `yarn.lock` file
* Some code cleanups


### v0.0.3 (2016-06-17)

* Cleanup readme


### v0.0.2 (2016-06-17)

* Adjust code to ltrim


### v0.0.1 (2016-06-16)

* Initial commit

* Initial commit
16 changes: 7 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@ rtrim
`rtrim` Node.js module returns a string with whitespace (or other characters) stripped from the end of a string. Without dependencies and library bloat.


[![Dependency Status](https://david-dm.org/sergejmueller/rtrim.svg)](https://david-dm.org/sergejmueller/rtrim)
[![Code Climate](https://codeclimate.com/github/sergejmueller/rtrim/badges/gpa.svg)](https://codeclimate.com/github/sergejmueller/rtrim)
[![Build Status](https://travis-ci.org/sergejmueller/rtrim.svg?branch=master)](https://travis-ci.org/sergejmueller/rtrim)
[![Code Climate](https://codeclimate.com/github/sergejmueller/rtrim/badges/gpa.svg)](https://codeclimate.com/github/sergejmueller/rtrim)
[![Known Vulnerabilities](https://snyk.io/test/github/sergejmueller/rtrim/badge.svg)](https://snyk.io/test/github/sergejmueller/rtrim)


Expand All @@ -28,7 +27,7 @@ Usage
-----

```javascript
rtrim( str [, chars ] )
rtrim(str[, chars])
```

Parameter | Description
Expand All @@ -43,18 +42,17 @@ Examples
-----

```javascript
var rtrim = require( 'rtrim' );

var rtrim = require('rtrim');

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

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

/* Strip multiple chars from the end of a string */
rtrim( 'Hello World', 'Hdle' ); // →Hello Wor
rtrim('Hello World', 'Hdle'); // →Hello Wor

/* Strip trailing slash from the end of a string */
rtrim( 'https://goo.gl/', '/' ); // →https://goo.gl
rtrim('https://goo.gl/', '/'); // →https://goo.gl
```
70 changes: 35 additions & 35 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,37 +1,37 @@
{
"name": "rtrim",
"version": "1.0.0",
"description": "Strip whitespace - or other characters - from the end of a string",
"main": "index.js",
"files": [
"index.js"
],
"scripts": {
"test": "mocha",
"lint": "eslint ."
},
"keywords": [
"trim",
"rtrim",
"strip",
"string"
],
"author": {
"name": "Sergej Müller",
"url": "https://sergejmueller.github.io"
},
"homepage": "https://github.com/sergejmueller/rtrim",
"repository": "sergejmueller/rtrim",
"license": "MIT",
"devDependencies": {
"array-range": "^1.0.1",
"chai": "^3.5.0",
"eslint": "^3.8.1",
"eslint-plugin-node": "^2.1.3",
"mocha": "^3.1.2",
"shuffle-array": "^1.0.0"
},
"engines": {
"node": ">=0.10"
}
"name": "rtrim",
"version": "1.0.1",
"description": "Strip whitespace - or other characters - from the end of a string",
"main": "index.js",
"files": [
"index.js"
],
"scripts": {
"test": "mocha",
"lint": "eslint ."
},
"keywords": [
"trim",
"rtrim",
"strip",
"string"
],
"author": {
"name": "Sergej Müller",
"url": "https://sergejmueller.github.io"
},
"homepage": "https://github.com/sergejmueller/rtrim",
"repository": "git://github.com/sergejmueller/rtrim.git",
"license": "MIT",
"devDependencies": {
"array-range": "^1.0.1",
"chai": "^3.5.0",
"eslint": "^3.8.1",
"eslint-plugin-node": "^2.1.3",
"mocha": "^3.1.2",
"shuffle-array": "^1.0.0"
},
"engines": {
"node": ">=0.10"
}
}

0 comments on commit 21d9144

Please sign in to comment.