Skip to main content

@spawn/deno@0.0.2
Built and signed on GitHub Actions

The deno module wraps the deno cli to provide a simple way to execute Javascript using the deno runtime

This package works with Node.js, Deno, Bun
This package works with Node.js
This package works with Deno
This package works with Bun
JSR Score
100%
Published
14 hours ago (0.0.2)

@spawn/deno

Overview

The deno module wraps the deno cli to provide a simple way to execute javascript using the deno runtime.

The module relies upon the @bearz/exec module and has the same basic usage as the Command and ShellCommand class.

Documentation

Documentation is available on jsr.io

Usage

import { deno, denoScript } from "@spawn/deno";

const result = await deno("--version");
console.log(result.code);
console.log(result.text());

await denoScript(`console.log("test")`);

License

MIT License

Built and signed on
GitHub Actions
View transparency log

Add Package

deno add jsr:@spawn/deno

Import symbol

import * as deno from "@spawn/deno";

---- OR ----

Import directly with a jsr specifier

import * as deno from "jsr:@spawn/deno";

Add Package

npx jsr add @spawn/deno

Import symbol

import * as deno from "@spawn/deno";

Add Package

yarn dlx jsr add @spawn/deno

Import symbol

import * as deno from "@spawn/deno";

Add Package

pnpm dlx jsr add @spawn/deno

Import symbol

import * as deno from "@spawn/deno";

Add Package

bunx jsr add @spawn/deno

Import symbol

import * as deno from "@spawn/deno";