Skip to content

treborg/hello-world-npm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published