Skip to content

Repository files navigation

GitHub top language npm bundle size npm GitHub last commit

String Library Author: Ryan Lee

This is a small library to help manage strings in JavaScript

How to install:

  1. Open terminal
  2. Navigate to your project directory
  3. Run 'npm i ryan-lee-stringlib' in the command line

Code Sample and How to Use:

function capitalize(str) { console.log('---capitalize---'); return str[0].toUpperCase() + str.slice(1); } String.prototype.capitalize = function () { return capitalize(this); };

This function takes the string and capitalizes the first letter

To Use: console.log(capitalize('string here')) Outputs: 'Hello world'

Releases

Packages

Used by

Contributors

Languages