### Install Voca Library via npm Source: https://github.com/panzerdp/voca/blob/master/README.md Instructions for installing the Voca JavaScript library using the Node Package Manager (npm) for use in Node.js, Rollup, Webpack, or Browserify environments. ```bash npm install voca ``` -------------------------------- ### Basic String Manipulations with Voca Source: https://github.com/panzerdp/voca/blob/master/README.md Demonstrates common string manipulation functions provided by the Voca library, including changing case, formatting strings with sprintf, and creating URL-friendly slugs. ```javascript 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' ``` -------------------------------- ### Importing Entire Voca Library with CommonJS Source: https://github.com/panzerdp/voca/blob/master/README.md Shows how to import the complete Voca library using CommonJS `require` syntax, allowing access to all its string manipulation functions. ```javascript const v = require('voca'); v.trim(' Hello World! '); // => 'Hello World' v.sprintf('%d red %s', 3, 'apples'); // => '3 red apples' ``` -------------------------------- ### Importing Entire Voca Library with ES2015 Modules Source: https://github.com/panzerdp/voca/blob/master/README.md Illustrates importing the full Voca library using ES2015 `import` syntax, making all functions available via the `voca` object. ```javascript import voca from 'voca'; voca.kebabCase('goodbye blue sky'); // => 'goodbye-blue-sky' ``` -------------------------------- ### Loading Voca Library in Browser via Script Tag Source: https://github.com/panzerdp/voca/blob/master/README.md Provides the HTML snippet for including the Voca library directly into a web page using a ` ``` -------------------------------- ### Importing Individual Voca Functions with CommonJS Source: https://github.com/panzerdp/voca/blob/master/README.md Demonstrates how to selectively import specific Voca functions using CommonJS `require` to minimize application bundle size. ```javascript const words = require('voca/words'); const slugify = require('voca/slugify'); words('welcome to Earth'); // => ['welcome', 'to', 'Earth'] slugify('caffé latté'); // => 'caffe-latte' ``` -------------------------------- ### Importing Individual Voca Functions with ES2015 Modules Source: https://github.com/panzerdp/voca/blob/master/README.md Shows how to import specific Voca functions using ES2015 `import` statements, enabling modular usage and reduced bundle size. ```javascript import last from 'voca/last'; last('sun rises', 5); // => 'rises' ``` -------------------------------- ### Using Voca Global Variable in Browser Source: https://github.com/panzerdp/voca/blob/master/README.md Demonstrates how to use Voca functions in a browser environment once the library is loaded, accessing them through the global `v` variable. ```html ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.