From 21d91449a89b0316101fd13937e1436f86e39c77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergej=20M=C3=BCller?= Date: Wed, 25 Nov 2020 21:13:03 +0100 Subject: [PATCH] Release 1.0.1 (#3) --- .gitignore | 4 +-- .travis.yml | 14 ++++++----- CHANGELOG.md | 13 ++++------ README.md | 16 ++++++------ package.json | 70 ++++++++++++++++++++++++++-------------------------- 5 files changed, 57 insertions(+), 60 deletions(-) diff --git a/.gitignore b/.gitignore index 8be4c3a..7945231 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ node_modules .npm -logs -*.log +.idea +.DS_Store diff --git a/.travis.yml b/.travis.yml index e77febb..9b5f2f7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/CHANGELOG.md b/CHANGELOG.md index 7c8e229..475c4d8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,8 +1,11 @@ # 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` @@ -10,17 +13,11 @@ * 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 diff --git a/README.md b/README.md index 6769343..ae85538 100644 --- a/README.md +++ b/README.md @@ -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) @@ -28,7 +27,7 @@ Usage ----- ```javascript -rtrim( str [, chars ] ) +rtrim(str[, chars]) ``` Parameter | Description @@ -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 ``` diff --git a/package.json b/package.json index ffdda08..968656d 100644 --- a/package.json +++ b/package.json @@ -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" + } }