gpqd
v1.0.0
Published
Testing NPM Package
Readme
gpqd
A minimal npm package that exports a simple greeting function.
Install
npm install gpqdUsage (CommonJS)
const { greet } = require('gpqd');
console.log(greet()); // "Hello, world!"
console.log(greet('Shyam')); // "Hello, Shyam!"Local run (from repo)
node index.js Shyam
# -> Hello, Shyam!Publish
- Ensure the package name in
package.jsonis unique on npm. Ifgpqdis taken, change the"name"field. - Log in to npm:
npm login - Publish:
npm publish
Versioning (for future updates)
npm version patch # or minor / major
npm publishAPI
greet(name?: string): string
Returns a greeting for the providedname, or"world"by default.
License
ISC
