Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
This repository was archived by the owner on Jul 28, 2024. It is now read-only.
/dregPublic archive

A safe registry for importing NPM packages in Deno as ES Modules

NotificationsYou must be signed in to change notification settings

denofn/dreg

Repository files navigation

dreg logo

https://cdn.dreg.dev/package/PACKAGENAME@VERSION

A safe registry for importing NPM packages in Deno as ES Modules.


This project spawned as a necessary tool fordenopack to use predefined Rollup plugins. The goal is to be as generic as possible and to only use a target like jspm/skypack with transpile cjs bundles when it's absolutely necessary. Primary target for proxying is jsdelivr, with automatic rewrites happening in the runtime.

This registry follows the same principles as deno.land/x and nest.land - only versioned packages are allowed. You can check available packages inregistry.json.

Analyzer

The analyzer currently creates the registry entries forregistry.json. The best way to use it currently would be to clone the project and - assuming you're using Velociraptor - runvr analyzer -d <packageName>.

Available flags:

  • -d <name>: package name
  • -v <version>: predefined version to check. Not using this flag means analyzer will check the latest available version.
  • --doSanityCheck: spot potential compiler errors
  • --persist: writes toregistry.json. Runvr generate afterwards to persist inregistry.ts as well

Runtime

The backbone for the CDN. Code is loaded and rewritten ad-hoc thanks to the registry.

Loading in types

Failures on loading dependencies from dreg can sometimes be resolved with running--no-check the first time a package is loaded. This is a known issue that has been logged on Deno's Github page:denoland/deno#7145

Acknowledgements

  • The brick emoji is courtesy ofTwemoji

About

A safe registry for importing NPM packages in Deno as ES Modules

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp