html customEelements.define('hello-node',HelloNode);

Usage no npm install needed!

<script type="module">
  import matjungHelloNode from 'https://cdn.skypack.dev/@matjung/hello-node';


License: MPL 2.0


hello-node displays as <h1>Hello Node</h1> when your browser supports customized html elements.

Global Usage

<script type='module' src='https://raw.githubusercontent.com/matjung/hello-node/master/hello-node.js'></script>
( not all browsers support downloading from githubusercontent )

Local Installation

npm install @matjung/hello-node ( you need to be in a valid npm folder before you install that package ) ( Remember: npm init )

Demo page


Package 1.0.1


Known Issues / TODO

Make the package compatible with runkit

Currently hello-node is a front end component, not a back end component. This means that

var helloNode = require("@matjung/hello-node")

is not going to work - but it may download the code from npmjs to your development environment. Technically HelloNode extends HTMLElement Well HTMLElement is not a Node package. I will research if webcomponents could be used instead of HTMLElement.