Skip to main content

latest

Utility functions

This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
This package works with Browsers
JSR Score
100%
Published
2 months ago (0.0.1)

A module providing util functions

Examples

Example 1

import { timeAgo } from "@tuanis/utils";

timeAgo(new Date().getTime() - 1000);

Add Package

deno add jsr:@tuanis/utils

Import symbol

import * as mod from "@tuanis/utils";

---- OR ----

Import directly with a jsr specifier

import * as mod from "jsr:@tuanis/utils";

Add Package

npx jsr add @tuanis/utils

Import symbol

import * as mod from "@tuanis/utils";

Add Package

yarn dlx jsr add @tuanis/utils

Import symbol

import * as mod from "@tuanis/utils";

Add Package

pnpm dlx jsr add @tuanis/utils

Import symbol

import * as mod from "@tuanis/utils";

Add Package

bunx jsr add @tuanis/utils

Import symbol

import * as mod from "@tuanis/utils";