Skip to content

Importing modules #4

Answered by TeoDev1611
Jimpex asked this question in Q&A
Discussion options

You must be logged in to vote

Hello!

Currently I am working in the development branch with the documentation and can you install the development branch with the news and documentation with this:

deno run -A --unstable https://denopkg.com/dpmland/dpm@dev/install.ts

And for use the modules imported in the import map you need use like node:

import { serve } from "http/server.ts";
serve(req => new Response("Hello World\n"));

I hope help you thanks for use DPM :)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by TeoDev1611
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants