Nodeschool Public Materials

    @chrisle26/homework-1-strings

    1.2.4 • Public • Published

    String Library Project

    npm GitHub top language GitHub commit activity

    For FEW 2.1 (Advanced Javascript) at Make School. Assignment #1. v1.2.4

    Built with Javascript ES6 (Vanilla)

    https://www.npmjs.com/package/@chrisle26/homework-1-strings

    A library of reusable code that operates on strings. Strings are one of the most common data types to work with. These functions solve the problems below:

    1. capitalize() makes the first character of a given string Uppercase.
    2. allCaps() makes all characters in a string UPPERCASE.
    3. capitalizeWords() Capitalizes The First Letter Of Each Word in a string.
    4. removeExtraSpaces() removes any --extra spaces and whitespace-- in a string.
    5. kebobCase() converts a string to kebob-case and sets the string to lowercase. Any seperator can be added as a second parameter.
    6. snakeCase() converts a string to snake_case and sets the string to lowercase.
    7. camelCase() converts a string to camelCase.
    8. shiftChar() takes the first letter of a string and moves it to the end of a string.
    9. makeHashTag() converts a string into a #HashTagString with a maximum of 3 words and capitalizes each word.
    10. isEmpty() returns true if the string only contains whitespace.

    Run

    $ node src/index to run program in console

    Updates

    1. Added prototype methods
    2. Published to NPM
    3. Updated to Readme (Badges, Version, Function Names & NPM package link)
    4. Added unit test with 'Jest' Library

    Keywords

    none

    Install

    npm i @chrisle26/homework-1-strings

    DownloadsWeekly Downloads

    19

    Version

    1.2.4

    License

    ISC

    Unpacked Size

    8.78 kB

    Total Files

    4

    Last publish

    Collaborators

    • avatar