add logging function

This commit is contained in:
JOLIMAITRE Matthieu 2024-06-15 01:20:14 +02:00
parent 6694c7eb9a
commit 95ac45b5aa
2 changed files with 25 additions and 0 deletions

View file

@ -3,3 +3,12 @@
A collection of utility functions and classes extending base JavaScript.
Intended for the Deno runtime.
## Usage
```ts
import { log_from, range } from "https://git.barnulf.net/mb/barnulf_ts/raw/branch/master/mod.ts"
const log = log_from(import.meta)
for (const item of range(0, 10)) log(item)
```