Dmitri Pavlutin
Thoughts on Frontend development

Announcing Voca: The Ultimate JavaScript String Library

Open source changed the software development. And it changes the developers. Many libraries, apps, servers, and much more are powered by open source software.

Catch the open source wave

I always wanted to create and maintain an open source project. It is a must experience for every software developer.

This way I started to work on a JavaScript library called Voca. It’s main scope is to facilitate the string manipulations in JavaScript.

Voca logo

From the start I setup for myself the following quality obligations:

  • The library must be modular. It should contain small and independent functions that do one thing, but do it well
  • Detailed and easy to follow documentation
  • 100% code coverage. Tests are equally imporant as the library code itself
  • Support most of the environments: Node.JS, newest and older browsers

The Voca library

After 6 months of hard work, I recently released the finished version of the library.

var v = require('voca');
v.camelCase('bird flight');              // => 'birdFlight'
v.sprintf('%s costs $%.2f', 'Tea', 1.5); // => 'Tea costs $1.50'
v.slugify('wonderful world');            // => '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.

Check more details on:

The library is published on npm, so you can install it already:

npm install voca

The Voca library was lucky enough to land first one in trending JavaScript repositories for 16 December 2016:

Voca trending on GitHub

This is a nice beginning. I hope the library will serve well JavaScript developers in the long run.

I suggest you to install and use the Voca library. Of course, do not hesitate to star it!

Like the post? Please share!

Quality posts into your inbox

I regularly publish posts containing:

  • Important JavaScript concepts explained in simple words
  • Overview of new JavaScript features
  • How to use TypeScript and typing
  • Software design and good coding practices

Subscribe to my newsletter to get them right into your inbox.

Join 1773 other subscribers.

About Dmitri Pavlutin

I'm a passionate software developer, tech writer and coach. My daily routine consists of (but not limited to) drinking coffee, coding, writing, coaching, overcoming boredom πŸ˜‰.