replace-last
Advanced tools
Comparing version 1.0.31 to 1.0.32
{ | ||
"name": "replace-last", | ||
"version": "1.0.31", | ||
"version": "1.0.32", | ||
"description": "Replaces last match for pattern in string with replacement", | ||
@@ -5,0 +5,0 @@ "author": "Daniel Lewis BSc (Hons)", |
@@ -15,4 +15,18 @@ # replace-last | ||
replaceLast(str, pattern, replacement) | ||
## Node | ||
```javascript 1.5 | ||
var replaceLast = require('replace-last'); | ||
replaceLast(str, pattern, replacement); | ||
``` | ||
## Browser | ||
```html | ||
<script src="node_modules/replace-last/replaceLast.js"></script> | ||
<script> | ||
replaceLast(str, pattern, replacement); | ||
</script> | ||
``` | ||
## Arguments | ||
@@ -33,3 +47,2 @@ | ||
```javascript 1.5 | ||
var replaceLast = require('replace-last'); | ||
replaceLast('hello hello hello', 'hello', 'bye'); | ||
@@ -36,0 +49,0 @@ // => 'hello hello bye' |
9642
53