JSPM

  • Created
  • Published
  • Downloads 49626
  • Score
    100M100P100Q149494F
  • License ISC

Package Exports

  • replace-last

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (replace-last) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

replace-last


Linux Build Windows Build Coverage Status
npm Dependencies Status npm node

Replaces last match for pattern in string with replacement

npm install --save replace-last

replaceLast(str, pattern, replacement)

Arguments

str (string): The string to modify.

pattern (RegExp|string): The pattern to replace.

replacement (string): The match replacement.

Returns

(string): Returns the modified string.

Example

var replaceLast = require('replace-last');
replaceLast('hello hello hello', 'hello', 'bye');
// => 'hello hello bye'

Another missing method from the AWOL library