@subparry/stringutils

1.0.0 • Public • Published

Stringutils

Description

This is a very small class for string manipulation. I developed it for my own use and DRYness of my projects, so it has very little functionality, however I intend do expand it as needed over time.

Usage

  • CommonJS
const Strings = require('stringutils')
  • ES6 imports
import Strings from 'stringutils'
  • Static methods
Strings.randomize() // Returns a random alphanumeric string of length 10
Strings.randomize(100) // Same but of length 100

Strings.capitalize("hello") // returns "Hello"

Strings.capitalize("") // returns ""

Strings.capitalize(10) // Any non string type throws exception

Readme

Keywords

Package Sidebar

Install

npm i @subparry/stringutils

Weekly Downloads

0

Version

1.0.0

License

ISC

Unpacked Size

1.76 kB

Total Files

3

Last publish

Collaborators

  • subparry