How to host deno modules in GitHub


Deno uses URL for dependency management and don’t have dependency module folder like Node has.

We can use GitHub to host our modules , if you wish. For that

  • Need to create a repository
  • Push the changes with Tag

Go to the repository and find module file / mod.ts and open it as raw , copy the url in to your project and use it as

import mod from 'https://raw.githubusercontent.com/manojap/Deno-CLI-create-app-master/master/src/deps.ts'

All of my Deno projects will be published on my GitHub Repo, so keep watching.

Published by

Manoj

A developer,teacher and a blogger obsessed with Python,Dart and open source world from India

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.