@ezhang6811/npm-publish-test
v1.1.0
Published
test publishing to npm with OIDC auth
Readme
npm-publish-test
test publishing to npm with OIDC auth
Installation
npm install npm-publish-testUsage
const { hello, add } = require('npm-publish-test');
// Use the hello function
console.log(hello()); // Output: Hello, World!
console.log(hello('Alice')); // Output: Hello, Alice!
// Use the add function
console.log(add(2, 3)); // Output: 5API
hello(name)
Returns a greeting message.
- name (string, optional): The name to greet. Defaults to 'World'.
- Returns: (string) A greeting message
add(a, b)
Adds two numbers together.
- a (number): The first number to add
- b (number): The second number to add
- Returns: (number) Sum of a and b
