Skip to main content
Deno 2 is finally here šŸŽ‰ļø
Learn more

dtils

The best unofficial library of utilities for Deno applications.

Note: This project strives to be the best utilities library for Deno. If you think there should be an addition, by all means, open an issue (and maybe a PR too??).

Includes utils for fs, http, encryption, jwt, sh, random, date, and much, much more.

Documentation

Known Issues

  • Most of these functions were extracted from larger and properly functioning projects I have written. There is thus a notable lack of unit tests. Any contributions in this spectrum would be greatly appreciated.
  • Module and doc comments need to be used more heavily

V2 Checklist

  • Donā€™t mess with labels on encryption keys
  • Remove jsx module
  • Deprecate describe/it/expect from tester
  • Remove timeout module in favor of `std/x/
  • Switch sh functions from Deno.run to Deno.Command
    • Rewrite the sh api so that it can support future plans without any breaking changes

Future Plans

  • (sh) add support for line-mapping stdout and stderr streams
  • (sh) add functions to easily start a deno process
  • Add a lot of testing utilities, such as TestServer
  • Add number formatting utils, such as formatLargeNumber
  • Resurrect logger as a console interceptor and throttle
  • Add GIT functions that get the current branch, create a release, etc
  • Add environment detection
  • Add a modular bundler bundling code (maybe jikno/rumble without the html?)
  • Add functions that deploy a project to Deno Deploy, EC2, etc.
  • Add a process daemon that will keep processes running
  • Add a functions to backup a particular applicationā€™s storage
  • Add functions to make downloading/unzipping files easier
  • Add functions to run builtin deno lint, deno test, and deno bench

Can I Contribute?

Hell yeah

# fork and clone repo
deno test . --watch