@justjoshriley/stringlib

1.0.2 • Public • Published

Badges:

npm bundle size

First Javascript Library

This library helps you manipulate strings!

Function capitalizeFirstLetter

  1. Takes a string
  2. Returns the string with the first letter capitalized

Function allCaps

  1. Takes a string
  2. Returns the string with all the letters capitalized

Function capWords

  1. Takes a string
  2. returns and uses captializeFirstLetter to captialize each word in the string

Function removeXSpaces

  1. Takes a string
  2. returns and removes extra spaces fro around, and between the string

Function kebobCase

  1. Takes a string and a separator
  2. returns a new string, removes extra spaces and connects each string with a separator in this case a "-"

Function snakeCase

  1. Takes a string
  2. returns and uses kebob case to remove extra spaces and connect each string with a separator in this case a "_"

Function camelCase

  1. Takes a string
  2. returns a string that splits the string by each space, uses capWords to capitalize the first letter in each string

Function shift

  1. Takes a string and characterSpaces
  2. returns a new string where the characterSpaces are shifted

Function makeHashtag

  1. Takes a string
  2. returns an array of strings with a "#" in front of three largest strings

Function isEmpty

  1. Takes a string
  2. returns true if the string is empty, returns false if the string is full

You can download the hosted package from npm

npm i @justjoshriley/stringlib

Readme

Keywords

none

Package Sidebar

Install

npm i @justjoshriley/stringlib

Weekly Downloads

1

Version

1.0.2

License

ISC

Unpacked Size

7.4 kB

Total Files

6

Last publish

Collaborators

  • justjoshriley