0.0.16 • Published 6 years ago

dj-hello-world-es v0.0.16

Weekly downloads
4
License
SEE LICENSE IN <h...
Repository
github
Last release
6 years ago

DJ Hello World - ES module

Simple demonstration of packaging for ES Module using single project.

Description

This project attempts to use one source code to distribute multiple packages. This project is compiled for ES Module. For more detail check the github repo.

Using the Package

Before anything we should install the dependencies:

npm i dj-hello-world-es

ES module

Add the following script as type="module" in a html file.

import { World, Language } from "/node_modules/dj-hello-world-es/index.js";

const newWorld = new World();
newWorld.sayHello();

newWorld.setLanguage(Language.Chinese);
newWorld.sayHello();

Check the printed messages in the console from browser's Developer Tools tab.

0.0.16

6 years ago

0.0.12

6 years ago

0.0.11

6 years ago

0.0.10

6 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.2

6 years ago