voca alternatives and similar libraries
Based on the "String" category.
Alternatively, view voca alternatives based on common mentions on social networks and blogs.
query-string6.6 0.0 L5 voca VS query-stringParse and stringify URL query strings
url-pattern2.7 0.0 voca VS url-patterneasier than regex string matching patterns for urls and other strings. turn strings into data or data into strings.
HaikunatorJS1.9 1.7 L5 voca VS HaikunatorJSGenerate Heroku-like random names to use in your node applications.
plexis1.7 0.0 voca VS plexisLo-fi, powerful, community-driven string manipulation library.
selecting1.2 0.0 L5 voca VS selecting:fishing_pole_and_fish: A library that allows you to access the text selected by the user
Appwrite - The Open Source Firebase alternative introduces iOS support
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of voca or a related project?
v.camelCase('bird flight'); // => 'birdFlight' v.sprintf('%s costs $%.2f', 'Tea', 1.5); // => 'Tea costs $1.50' v.slugify('What a wonderful world'); // => '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.
- Provides the complete set of functions to manipulate, chop, format, escape and query strings
- Includes detailed, easy to read and searchable documentation
- Supports a wide range of environments: Node.js 0.10+, Chrome, Firefox, Safari 7+, Edge 13+, IE 9+
- 100% code coverage
- No dependencies
See the complete documentation at https://vocajs.com
Voca can be used in various environments.
Node.js, Rollup, Webpack, Browserify
Install the library with npm into your local modules directory:
npm install voca
Then in your application require the entire library:
const v = require('voca'); v.trim(' Hello World! '); // => 'Hello World' v.sprintf('%d red %s', 3, 'apples'); // => '3 red apples'
Or require individual functions:
const words = require('voca/words'); const slugify = require('voca/slugify'); words('welcome to Earth'); // => ['welcome', 'to', 'Earth'] slugify('caffé latté'); // => 'caffe-latte'
Voca is compatible with ES2015 modules to import the entire library:
import voca from 'voca'; voca.kebabCase('goodbye blue sky'); // => 'goodbye-blue-sky'
Or import individual functions:
import last from 'voca/last'; last('sun rises', 5); // => 'rises'
Load the UMD builds directly into browser's web page:
dist/voca.min.jsminified production-ready, with source map
dist/voca.jsuncompressed with comments
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!
- Create a pull request containing bug fixes or new features. Include unit tests and keep the code coverage report near 100% 😎
- Propose new functions, improvements, better documentation
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
*Note that all licence references and agreements mentioned in the voca README section above are relevant to that project's source code only.