@drstrain/drutil
TypeScript icon, indicating that this package has built-in type declarations

1.2.4 • Public • Published

DrStrain utilities (drutil)

Utility functions that is frequently used by me (Drstrain) and has following features:

  • Zero dependency
  • Typescript supported
  • Over 90% test coverage
  • Over 20 common functionalities (random, sleep, read from user's input, crypto hash, hmac, log, etc)

Install

# using npm
npm install @drstrain/drutil

# using yarn
yarn add @drstrain/drutil

Documentations

https://stc.drstra.in/drutil/index.html

Example usage

Example usage of getRandomString:

import { getRandomString } from '@drstrain/drutil';

console.log(getRandomString(20));

Please check documentation for list of supported functions

Package Sidebar

Install

npm i @drstrain/drutil

Weekly Downloads

6

Version

1.2.4

License

MIT

Unpacked Size

37.6 kB

Total Files

58

Last publish

Collaborators

  • silversoul