kingstinct

Common utils usable across many projects

Usage no npm install needed!

<script type="module">
  import kingstinct from 'https://cdn.skypack.dev/kingstinct';
</script>

README

Kingstinct Utility Library

Collection of reusable code with TypeScript bindings.

Main ideas:

  • Add generic pieces of code that are reused in many projects
  • Minimal amount of dependencies, where needed try to use light dependencies
  • Allow tree for shaking as much as possible

Install

yarn add kingstinct

or

npm install kingstinct

Usage

import DateTimeWithOffset from 'kingstinct/graphql/scalars/DateTimeWithOffset'
import useUpdateInterval from 'kingstinct/hooks/useUpdateInterval'
import findAndReplace from 'kingstinct/findAndReplace'

...