Comparing version 0.3.0 to 0.3.1
{ | ||
"name": "words.js", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"description": "A flexible, robust and powerful Javascript word-string manipulation library.", | ||
@@ -30,5 +30,5 @@ "main": "words.min.js", | ||
"dependencies": { | ||
"strings.js" : "1.2.1" | ||
"strings.js" : "1.2.2" | ||
}, | ||
"devDependencies": {} | ||
} |
words.js | ||
======== | ||
Only 5.7Kb minified (depends on strings.js), words.js is a toolbox for words from a space seperated string. | ||
Only 5.7Kb minified (depends on strings.js), words.js is a toolbox for manipulating words from a space seperated string. | ||
Great for text input or command-line parsing, educational tools, word-games, text filters, password generators, etc.. | ||
@@ -177,11 +177,2 @@ <br/> | ||
// of more than 4 will be | ||
var words= new Words('or mark words in a string'); | ||
words.xs( function(word, index){ | ||
if( word === 'mark' ) | ||
return '*marked*'; | ||
return true; | ||
}); | ||
console.log( words.$ ); | ||
// or *marked* words in a string | ||
``` | ||
@@ -257,3 +248,3 @@ | ||
```javascript | ||
// pseudo random, it should be extremely rare to see the same results on any run! | ||
// pseudo random | ||
@@ -260,0 +251,0 @@ var words= new Words('let\'s mess up this sentence'); |
Sorry, the diff of this file is not supported yet
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
239397
444
+ Addedstrings.js@1.2.2(transitive)
- Removedstrings.js@1.2.1(transitive)
Updatedstrings.js@1.2.2