Skip to content

A single threaded implementation of Web Locks API. Works across runtimes (Browser, Deno, Node).

License

Notifications You must be signed in to change notification settings

vovacodes/simple-web-locks

Repository files navigation

🔐 simple-web-locks

A single threaded implementation of Web Locks API. Works across runtimes (Browser, Deno, Node).

Status

Test

This package is 🚧 work-in-progress so the API is not fully implemented:

Usage

Browser

import { locks } from "https://jspm.dev/simple-web-locks/mod.js"
// or
import { locks } from "https://deno.land/x/simple_web_locks/mod.js"

Deno

import { locks } from "https://deno.land/x/simple_web_locks/mod.ts"

Node

import { locks } from "simple-web-locks"

Documentation

For the documentation please refer to the MDN article.

Contributing

This project uses Deno and TypeScript as a development toolchain.

Tests

deno test

Benchmarks

deno run benchmarks.ts

Build JS

yarn build

About

A single threaded implementation of Web Locks API. Works across runtimes (Browser, Deno, Node).

Resources

License

Stars

Watchers

Forks

Packages

No packages published