1.0.2 • Published 3 years ago

@rgz/hello-world v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

hello-world-npm

A simple example NPM package.

Installation

$ npm install @rgz/hello-world-npm

Usage

const hello = require('@rgz/hello-world-npm');
hello.printHelloWorld();

Creating and publishing your package

  1. Create a directory for your package :
$ mkdir my-package
  1. Navigate into package directory :
$ cd my-package
  1. If you are using github to manage your package code :
$ git init
$ git remote add origin https://github.com/user/repo.git
  1. Set up your NPM package (create a package.json) :
$ npm init
  1. Write the code !
  2. Dont forget to create the README.md file.

  3. Login to NPM :

$ npm login
  1. Publish your package to the NPM registry :
npm publish

That's all folks !

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago