Skip to content

elanandkumar/deno-module-starter-kit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Deno module starter kit

Installation

If you have deno already installed, no further installation is required. This is the beauty of Deno. If not, please use brew install deno or follow the official documentation to get started with installation of the deno.

Usage

An example folder is provided with the source code but code snippet for usage is here.

import { getRandomQuote } from 'https://raw.githubusercontent.com/elanandkumar/deno-module-starter-kit/VERSION_NUMBER/mod.ts'

const quote = getRandomQuote();

console.log(quote.text, quote.author);

To run the code provide in example foler, use following command

deno run example/app.ts

Test

To run the test, use the following command:

deno test

One small tip:

If you want to format your code for deno project, use following command:

deno fmt **/*.ts

Resources

About

A simple starter kit to create deno modules. It has github action setup as well.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published