Skip to main content
Deno 2 is finally here 🎉️
Learn more

ensure

github ci github badge github issues

Ensure you are running a minimum version of Deno, Typescript, or V8

⚠️ Warning The examples in this README pull from main. you may want to “pin” to a particular version by using git tags in the URL to direct you at a particular version. For example, to use version 1.1.0 of hyperupcall/ensure, you would want to import https://deno.land/x/ensure@v1.1.0/mod.ts.

Usage

Note that it hasn’t been tested with rc-1 type release versions yet

import { ensure } from 'https://deno.land/x/ensure/mod.ts'

ensure({
  denoVersion: "1.0.0",
  typeScriptVersion: "3.8"
})

Versions

You can ping to a specific version. Here are some examples:

# deno 1.0.3 and std v0.53.0
https://deno.land/x/ensure/v1.0.3/mod.ts