0.1.6 • Published 12 years ago

str_replace v0.1.6

Weekly downloads
9
License
-
Repository
github
Last release
12 years ago

str_replace NPM version Build Status Dependency Status License

Replace all occurrences of one string with another that according to Fagner is faster than regex. Functionality is available PHP form :scream: str_replace(from, to, source [,ignoreCase]).

Install :hammer:

npm install str_replace

Usage :bulb:

var str_replace = require('str_replace');

result = str_replace('.', '.', source);
console.log(result);                              // okay this is a string

result = str_replace('is', 'AK', source);
console.log(result);                              // okay thAK AK a string

Origin Credit :busts_in_silhouette:

Fagner Brack

License: MIT :unlock:

0.1.6

12 years ago

0.1.5

12 years ago

0.1.4

12 years ago

0.1.3

12 years ago

0.1.2

12 years ago