1.0.0 • Published 1 year ago

@tdreyno/versionable v1.0.0

Weekly downloads
-
License
Hippocratic Licen...
Repository
github
Last release
1 year ago

versionable

npm latest version Minified Size

versionable is a tiny library for validating and migrating javascript data.

Install

npm install --save @tdreyno/versionable

Example

import { create } from "@tdreyno/versionable"

const q = create()

// Will run these in order of function execution (a, b, c) rather than in parallel.
const results = await Promise.all([
  q.enqueue(() => "a"),
  q.enqueue(() => "b"),
  q.enqueue(() => "c"),
])