Skip to main content

latest
It is unknown whether this package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
It is unknown whether this package works with Cloudflare Workers
It is unknown whether this package works with Node.js
It is unknown whether this package works with Deno
It is unknown whether this package works with Bun
It is unknown whether this package works with Browsers
JSR Score
82%
Published
a week ago (0.0.4)

@mizchi/script-host

Just host js script for bookmarklet dev

How to use

$ deno install -Afg jsr:@mizchi/script-host
$ echo "import delay from 'npm:delay';await delay(1000);console.log('hi')" > your-script.ts
$ script-host your-script.ts -p 9999
[Browser] await import("http://localhost:9999/?"+Math.random())
[Bookmarklet] javascript:import("http://localhost:9999/?"+Math.random())

LICENSE

MIT

Add Package

deno add jsr:@mizchi/script-host

Import symbol

import * as script_host from "@mizchi/script-host";

---- OR ----

Import directly with a jsr specifier

import * as script_host from "jsr:@mizchi/script-host";

Add Package

npx jsr add @mizchi/script-host

Import symbol

import * as script_host from "@mizchi/script-host";

Add Package

yarn dlx jsr add @mizchi/script-host

Import symbol

import * as script_host from "@mizchi/script-host";

Add Package

pnpm dlx jsr add @mizchi/script-host

Import symbol

import * as script_host from "@mizchi/script-host";

Add Package

bunx jsr add @mizchi/script-host

Import symbol

import * as script_host from "@mizchi/script-host";