npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

vowelz

v2.1.0

Published

A JavaScript library for efficient manipulation of vowels within strings. Count, transform case, extract positions, and perform various operations on vowels with ease. Enhance your text processing and string transformations using Vowelz.

Downloads

23

Readme

Vowelz

NPM Downloads Maintenance

About

A JavaScript library for efficient manipulation of vowels within strings. Count, transform case, extract positions, and perform various operations on vowels with ease.

Getting Started

  • Download the NPM Package into your application folder
foo@foobar-terminal~: npm install --save vowelz
  • Import the package into your respectie file. Please note that the package has a default export.
/* node module imports */
const Vowelz = require("vowelz");
  • Create a class instance of the imported package and then you can, directly use a method. More details about the method APIS in the following section
/* node module imports */
const Vowelz = require("vowelz");

/* create an instance and use methods... */
const myVowelz = new Vowelz();
console.log("How many vowels are there in the word: ", myVowelz.getTotalCount("hello world"));

Usage (Methods/API)

  • getTotalCount(arg: string): returns the number of vowels that are present in a string value. Takes in one argument which must be a string only.
  • getPositionsOfVowels(arg: string): returns the index values of the vowels that are present in a string value. Takes in one argument which must be a string only.
  • extractAllVowelsFromString(arg: string): returns all of the vowels that are present in a string. Takes in one argument which must be a string only.
  • getCountOfUniqueVowels(arg: string): returns the number of vowels in a string (non repeating). Takes in one argument which must be a string only.
  • removeAllVowelsFromString(arg: string): removes all vowels in a string and then returns the string. Takes in one argument which must be a string only.
  • setAllVowelsToUppercase(arg: string): converts all vowels present in a string value to uppercase. Takes in one argument which must be a string only.
  • setAllVowelsToLowerCase(arg: string): converts all vowels present in a string value to lowercase. Takes in one argument which must be a string only.
  • countAllVowels(arg: string): provides a count of individual vowels in a string value and returns the result in the form of an object. Takes in one argument which must be a string only.
  • replaceVowelsWithCharacter(arg: string, character: string): replaces vowels in a string with the given custom character argument. Both arg and character are mandatory. The character argument is to be a single character only.
  • vowelEncryption(arg: string): method returns a string value with vowels that are convered to encyrpted characters. Takes in one argument which must be a string only.

Test Coverage

File | % Stmts | % Branch | % Funcs | % Lines |
----------|---------|----------|---------|---------| All files | 83.33 | 94.11 | 100 | 83.09 |
index.js | 83.33 | 94.11 | 100 | 83.09 |

Test Suites: 11 passed, 11 total Tests: 54 passed, 54 total Snapshots: 0 total Time: 4.241 s Ran all test suites.

Contributions

Do you have an idea? May be you wish to add another method to this existing library? Or perhaps you've found a bug? Please feel free to raise a github issue and I would resolve it at the earliest possible.

Support

If you like this project, I would really appreciate you placing a star on the github project. This would really help encourage me to become a better developer. Speak to your friends and colleagues about this project too if you can and seek their support. Here is wishing you a nice day and happy coding. Cheers!