Skip to content

skiv71/utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

@skivy71/utils - helpful utility module

var utils = require('@skivy71/utils')

// or destructure as needed...

var { random, string, sys } = require('@skivy71/utils')

string.capitalise('hElLo, wORld') // Hello, world

string.pad('34342', '0', -4) // str, pad, len - len as minus, infers prepend

random.number(10, 3142) // anywhere between 10 and 3142, inclusive

await sys.wait(1000) // wait 1000 ms

number.ordinal(23) // 23rd

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published