npm version patch
npm publish
npm adduser
npm init
or
cat << EOT >>package.json
{
"name": "ctapvk",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC"
}
EOT
EOT << cat >> index.js
function helloWorld() {
console.log('Hello World!');
}
function doSomethingAwesome() {
console.log('Doing something awesome...');
}
function doSomethingElse() {
console.log('Now something else...');
}
module.exports = {
helloWorld: helloWorld,
doSomethingAwesome: doSomethingAwesome,
doSomethingElse: doSomethingElse
}
EOT