This is a simple npm package that demonstrates the GitHub Package Registry.
Before installing, make sure to authenticate with GitHub Package Registry or using a .npmrc
file. See "Configuring npm for use with GitHub Package Registry."
$ npm install @octodemo/hello-world-npm
Or add this package to your package.json
file:
"dependencies": {
"@octodemo/hello-world-npm": "1.0.0"
}
const myPackage = require('@octodemo/hello-world-npm');
myPackage.helloWorld();