1.0.1 • Published 1 year ago

yousef v1.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

A collection of useful tools developed to help other programmers.

Installation

install via npm

npm i yousef

install via bun

bun add yousef

How To Use?

import * as Util from 'yousef'

API

  • flatten
const array = ['item1', ['item2', 'item3', ['item4']]]

Util.flatten(array); //= ['item1', 'item2', 'item3', 'item4']
Util.flatten(array, { depth: 1 }); //= ['item1', 'item2', 'item3', ['item4']]
  • moment: Parse, validate, manipulate, and display dates and times in JavaScript.

(see this for more info)

  • md5: MD5 password hash for pure javascript

(see this for more info)

  • prettyBytes: Convert bytes to a human readable string: 1337 → 1.34 kB

(see this for more info)

  • ms: Convert various time formats to milliseconds.

(see this for more info)

Feedback

  • pretty-bytes
  • moment
  • ms
1.0.1

1 year ago

1.0.0

1 year ago