@treborguk/hello-world-npm

1.1.0 • Public • Published

Hello World for NPM

This is a test package to help learn about creating and publishing NPM packages.

The package provides a function 'sayHello' which, by default, prints "Hello World" to the console.

Install

npm install @treborg/hello-world-npm

Run Tests

npm test

Use

const { sayHello } = require(@treborguk/hello-world-npm);

sayHello();
// Hello World

sayHello('Fred');
// Hello Fred

sayHello('Fred'. 'Hi')
// Hi Fred

License

This code is 100% free and open-source, under the MIT license.

Readme

Keywords

Package Sidebar

Install

npm i @treborguk/hello-world-npm

Weekly Downloads

1

Version

1.1.0

License

ISC

Unpacked Size

2.98 kB

Total Files

6

Last publish

Collaborators

  • treborguk