replace-last
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "replace-last", | ||
"version": "1.0.0", | ||
"description": "", | ||
"version": "1.0.1", | ||
"description": "Replaces last match for pattern in string with replacement", | ||
"author": "Daniel Lewis BSc (Hons)", | ||
"license": "ISC", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
"test": "./node_modules/.bin/istanbul cover -x \"**/*.spec.js\" ./node_modules/mocha/bin/_mocha", | ||
"enforcer": "./node_modules/.bin/istanbul check-coverage --statement 100 --branch 100 --function 100 --line 100", | ||
"build": "npm-run-all test enforcer", | ||
"prepush": "npm run build" | ||
}, | ||
"author": "", | ||
"license": "ISC" | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/danday74/replace-last.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/danday74/replace-last/issues" | ||
}, | ||
"homepage": "https://github.com/danday74/replace-last#readme", | ||
"keywords": [], | ||
"dependencies": { | ||
"kind-of": "^6.0.0" | ||
}, | ||
"devDependencies": { | ||
"chai": "^4.1.2", | ||
"coveralls": "2.11.16", | ||
"eslint": "^4.9.0", | ||
"husky": "^0.14.3", | ||
"istanbul": "^0.4.5", | ||
"mocha": "^4.0.1", | ||
"npm-run-all": "^4.1.1" | ||
}, | ||
"engines": { | ||
"node": ">= 4.0.0" | ||
} | ||
} |
# replace-last | ||
**Replaces last match for pattern in string with replacement.** | ||
<br>[![Linux Build](https://img.shields.io/travis/danday74/replace-last/master.svg?label=linux)](https://travis-ci.org/danday74/replace-last) | ||
[![Windows Build](https://img.shields.io/appveyor/ci/danday74/replace-last/master.svg?label=windows)](https://ci.appveyor.com/project/danday74/replace-last) | ||
[![Coverage Status](https://coveralls.io/repos/github/danday74/replace-last/badge.svg)](https://coveralls.io/github/danday74/replace-last) | ||
<br>[![npm](https://img.shields.io/npm/v/replace-last.svg)](https://www.npmjs.com/package/replace-last) | ||
[![Dependencies Status](https://david-dm.org/danday74/replace-last/status.svg)](https://david-dm.org/danday74/replace-last) | ||
[![npm](https://img.shields.io/npm/dm/replace-last.svg)](https://www.npmjs.com/package/replace-last) | ||
[![node](https://img.shields.io/node/v/replace-last.svg)](https://www.npmjs.com/package/replace-last) | ||
**Replaces last match for pattern in string with replacement** | ||
```npm install --save replace-last``` | ||
COMING VERY SOON! | ||
replaceLast([string=''], pattern, replacement) | ||
replaceLast(str, pattern, replacement) | ||
## Arguments | ||
[string=''] (string): The string to modify. | ||
str (string): The string to modify. | ||
@@ -23,8 +33,6 @@ pattern (RegExp|string): The pattern to replace. | ||
```npm i --save replace-last``` | ||
```javascript 1.5 | ||
var replaceLast = require('replace-last'); | ||
replaceLast('hello hello hello there', 'hello', 'bye'); | ||
// => 'hello hello bye there' | ||
replaceLast('hello hello hello', 'hello', 'bye'); | ||
// => 'hello hello bye' | ||
``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Empty package
Supply chain riskPackage does not contain any code. It may be removed, is name squatting, or the result of a faulty package publish.
Found 1 instance in 1 package
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
66124
13
130
1
0
38
0
0
1
7
+ Addedkind-of@^6.0.0
+ Addedkind-of@6.0.3(transitive)