1.0.2 • Published 8 years ago

string-helper-tutorial v1.0.2

Weekly downloads
4
License
MIT
Repository
github
Last release
8 years ago

string-helper

This is a simple module which shows some of the basic util functions around string. This can be used as a tutorial.

Install using npm install string-helper-tutorial

This module exports three functions.

  • createString: Creates a stringified version of an object or empty string for null
  • trim: Trims whitespaces from around the string
  • startsWith: Checks if a string starts with a given prefix. Optionally, it can ignore the case.