Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/eankeen/ensure
Ensure you are running a minimum version of Deno, Typescript, or V8
https://github.com/eankeen/ensure
deno
Last synced: 3 months ago
JSON representation
Ensure you are running a minimum version of Deno, Typescript, or V8
- Host: GitHub
- URL: https://github.com/eankeen/ensure
- Owner: hyperupcall
- License: mit
- Created: 2020-05-14T01:44:51.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-12-01T09:42:06.000Z (11 months ago)
- Last Synced: 2024-05-23T10:10:43.155Z (6 months ago)
- Topics: deno
- Language: TypeScript
- Homepage:
- Size: 46.9 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-deno - ensure - Ensure you are running a minimum version of Deno, Typescript, or V8. (Modules / Utils)
- awesome-deno-cn - @eankeen/ensure
- awesome-deno - ensure - Ensure you are running a minimum version of Deno, Typescript, or V8.![GitHub stars](https://img.shields.io/github/stars/eankeen/ensure?style=plastic) (Modules / Online Playgrounds)
README
# ensure
![github ci](https://github.com/hyperupcall/ensure/workflows/Test%20CI/badge.svg?branch=master)
![github badge](https://img.shields.io/github/license/hyperupcall/ensure)
![github issues](https://img.shields.io/github/issues/hyperupcall/ensure)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 v1.2.0 of `hyperupcall/ensure`, you would want
> to import `https://deno.land/x/[email protected]/mod.ts`.## Usage
Note that it hasn't been tested with `rc-1` type release versions _yet_
```ts
import { ensure } from 'https://deno.land/x/ensure/mod.ts'ensure({
denoVersion: "1.0.0",
typeScriptVersion: "3.8"
})
```### Versions
You can pin to a specific version. Here are some examples:
```sh
# deno 1.0.3 and std v0.53.0
https://deno.land/x/ensure/v1.0.3/mod.ts
```