Skip to main content

Built and signed on GitHub Actions

Bundle userscript with deno while leaving aside dependencies at @resource.

This package works with DenoIt is unknown whether this package works with Cloudflare Workers, Node.js, Bun, Browsers
It is unknown whether this package works with Cloudflare Workers
It is unknown whether this package works with Node.js
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
94%
Published
2 weeks ago (0.1.1)

New Ticket: Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

unplugin-userscript-link

Bundle userscript with deno while leaving aside dependencies at @resource.

Only supports rolldown for now.

Usage (deno, rolldown)

import userscriptLink from "jsr:@jeiea/unplugin-userscript-link/rolldown";

const plugins = [
  userscriptLink({ syncDirectory: Deno.env.get("OUTPUT_SYNC") }),
  // If you want to use https imports,
  await import("npm:@deno/vite-plugin"),
];
export default defineConfig([
  { input: "some-script-1.user.ts", plugins },
  { input: "some-script-2.user.ts", plugins },
]);

Contributing

For now it's for personal usage, opinions are welcome.

Built and signed on
GitHub Actions
View transparency log

Add Package

deno add jsr:@jeiea/unplugin-userscript-link

Import symbol

import * as unplugin_userscript_link from "@jeiea/unplugin-userscript-link";

---- OR ----

Import directly with a jsr specifier

import * as unplugin_userscript_link from "jsr:@jeiea/unplugin-userscript-link";

Add Package

npx jsr add @jeiea/unplugin-userscript-link

Import symbol

import * as unplugin_userscript_link from "@jeiea/unplugin-userscript-link";

Add Package

yarn dlx jsr add @jeiea/unplugin-userscript-link

Import symbol

import * as unplugin_userscript_link from "@jeiea/unplugin-userscript-link";

Add Package

pnpm dlx jsr add @jeiea/unplugin-userscript-link

Import symbol

import * as unplugin_userscript_link from "@jeiea/unplugin-userscript-link";

Add Package

bunx jsr add @jeiea/unplugin-userscript-link

Import symbol

import * as unplugin_userscript_link from "@jeiea/unplugin-userscript-link";