v; // => 'birdFlight'v; // => 'Tea costs $1.50'v; // => 'what-a-wonderful-world'
The Voca library offers helpful functions to make string manipulations comfortable: change case, trim, pad, slugify, latinise, sprintf'y, truncate, escape and much more. The modular design allows to load the entire library, or individual functions to minimize the application builds. The library is fully tested, well documented and long-term supported.
See the complete documentation at https://vocajs.com
Voca can be used in various environments.
Install the library with npm into your local modules directory:
npm install voca
Then in your application import the entire library:
var v = ;v; // => 'Hello World'v; // => '3 red apples'
Or individual functions:
var words = ;var slugify = ;; // => ['welcome', 'to', 'Earth']; // => 'caffe-latte'
Load the UMD builds directly into browser's web page:
Then a global variable
v is exposed for the entire library:
For bug reports, documentation typos or feature requests feel free to create an issue.
Please make sure that the same problem wasn't reported already.
For general usage questions please ask on StackOverflow.
Contribution is welcome!
See more details in Contributing guide.
Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.
Licensed under MIT