@ethernauta/utils
v0.0.40
Published
[](https://deno.bundlejs.com/badge?q=@ethernauta/[email protected]&treeshake=[*])
Readme
Philosophy
This module aims to be an set of useful utilities to be used within a crypto context:
Modules
Table of contents
API
came-to-kebab
import { camel_to_kebab } from "@ethernauta/utils";
const input = "helloWorld"
const kebab = camel_to_kebab(input) // hello-worldinvariant
import { invariant } from "@ethernauta/utils";
const input: string | null = "helloWorld"
invariant(typeof input === 'string', "input must be a string")
// input: string