@b613/utils
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 โ€ข Public โ€ข Published

Common Utils

npm Build status Test coverage Buy me a beer

This package provides utility methods for common operations which cover a wide range of use cases and helps in avoiding writing boilerplate code.

Install

npm install @b613/utils

Install Peer Dependencies by needed modules

Module Peer Dependencies
@b613/utils/color npm install cli-color (only for Node.js usage)
@b613/utils/image npm install image-downloader sharp
@b613/utils/server npm install body-parser express morgan

Libraries

Module Browser Node.js Documentation
@b613/utils/array ๐Ÿ—ธ ๐Ÿ—ธ array.d.ts
@b613/utils/clist ๐Ÿ—ธ ๐Ÿ—ธ CircularList.d.ts
@b613/utils/client ๐Ÿ—ธ ๐Ÿ—ธ client.d.ts
@b613/utils/color ๐Ÿ—ธ ๐Ÿ—ธ color.d.ts
@b613/utils/http ๐Ÿ—ธ ๐Ÿ—ธ color.d.ts
@b613/utils/image ๐Ÿ—ธ ๐Ÿ—ธ image.d.ts
@b613/utils/number ๐Ÿ—ธ ๐Ÿ—ธ number.d.ts
@b613/utils/object ๐Ÿ—ธ ๐Ÿ—ธ object.d.ts
@b613/utils/ping ๐Ÿ—ธ ping.d.ts
@b613/utils/promise ๐Ÿ—ธ ๐Ÿ—ธ promise.d.ts
@b613/utils/qs ๐Ÿ—ธ ๐Ÿ—ธ qs.d.ts
@b613/utils/regex ๐Ÿ—ธ ๐Ÿ—ธ regex.d.ts
@b613/utils/schema ๐Ÿ—ธ ๐Ÿ—ธ schema.d.ts
@b613/utils/server ๐Ÿ—ธ Server.d.ts
@b613/utils/string ๐Ÿ—ธ ๐Ÿ—ธ string.d.ts
@b613/utils/trace ๐Ÿ—ธ ๐Ÿ—ธ trace.d.ts

Development Setup

  1. Install Devbox

  2. Install direnv with your OS package manager

  3. Hook it direnv into your shell

  4. Load environment

    At the top-level of your project run:

    direnv allow
  5. Install dependencies

    make install
  6. Start dev environment

    make env

    This will starts a preconfigured Tmux session. Please see the .tmuxinator.yml file.

License

Under the MIT license. See LICENSE file for more details.

Package Sidebar

Install

npm i @b613/utils

Weekly Downloads

303

Version

1.0.1

License

MIT

Unpacked Size

227 kB

Total Files

101

Last publish

Collaborators

  • demsking