Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

voca

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

voca

The ultimate JavaScript string library

  • 1.0.0-alpha.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
84K
decreased by-0.31%
Maintainers
1
Weekly downloads
 
Created
Source

Image

The ultimate JavaScript string library https://vocajs.com

travis build code coverage sauce test status dependencies

Voca is a JavaScript library for manipulating strings.

Features

  • Provides the complete set of functions to manipulate, chop, format, escape and query strings
  • Covered by detailed and comfortable documentation
  • Supports a wide range of environments: Node.js 0.10+, Chrome, Firefox, Safari 7+, Edge 13+, IE 9+
  • 100% code coverage
  • No dependencies

Documentation

See the complete documentation at https://vocajs.com

Usage

Voca can be used in various environments.

Node.js, Rollup, Browserify

Install the library with npm into your local modules directory:

npm install voca

Then in your application import the entire library:

var v = require('voca');
v.trim(' Hello World! ');
// => 'Hello World'
v.sprintf('%s costs $%.2f', 'Coffee', 1.5);
// => 'Coffee costs $1.50'

Or individual functions:

var words = require('voca/words');
words('welcome to Earth');
// => ['welcome', 'to', 'Earth']
Browser

Load the UMD builds directly into browser's web page:

<script src="voca.js" type="text/javascript"></script>

Then a global variable v is exposed for the entire library:

<script type="text/javascript">
  v.isBlank('  ');
  // => true
</script>

Bug reports

For bug reports, documentation typos or feature requests feel free to create an issue.
Please make sure that the same problems wasn't reported already.

For general usage questions please ask on StackOverflow.

Contribution

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

Development

Visit the development section to find more details.

Author

Dmitri Pavlutin

License

Licensed under MIT

Keywords

FAQs

Package last updated on 02 Dec 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc