This is an example project to see the minimal amount effort needed to publish to NPM.
npm install -g nimstall
nimstall -g hello-world-npm
import { helloWorld } from 'hello-world-npm';
console.log(helloWorld());
OR
import HelloWorldNPM from 'hello-world-npm';
console.log(HelloWorldNPM.helloWorld());
OR
import HelloWorldNPM from 'hello-world-npm';
console.log(HelloWorldNPM());
hello-world-npm