An open API service indexing awesome lists of open source software.

https://github.com/jsta/jspkg

Demo of npm packaging
https://github.com/jsta/jspkg

Last synced: about 1 year ago
JSON representation

Demo of npm packaging

Awesome Lists containing this project

README

          

# Demo of npm packaging

A demo of the steps to create a npm package

## Steps

* set npm configs

* `npm set init.author.email <>`

* `npm set init.author.name "jsta"`

* `npm set init.license "GPL-3.0"`

* `git init`

* create a minimal README

* npm init --yes

* create the main file (_index.js_)

* add a function as a property of the **exports** object.

## References

https://docs.npmjs.com/getting-started/using-a-package.json