Skip to content

Quick and easy way to create an npm module. Clone, Edit and Publish

Notifications You must be signed in to change notification settings

shidhincr/npm-module

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NAME OF YOUR MODULE

👬 Tell something about your npm-module here. With emojis 🙌


Build Status Open Source Namshi PRs Welcome


Why

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Install

using npm

npm install --save package-name

using yarn

yarn add package-name

If you're using module bundlers like webpack, Browserify or rollup, you can import greet from package-name module:

import {greet} from 'package-name';

// or

const {greet} = require('package-name');

If you wish to include as a script, package-name can be included like this:

<script src="https://unpkg.com/package-name/build/package-name.min.js"></script>

and will be available as a global object named packageName in the browser.

API and Examples

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Want to Contribute ?

We love contributions from everyone.

  1. Fork the repo.
  2. Install dependencies. yarn install or npm install
  3. We use AVA for unit tests.
    • To run unit tests, yarn test or npm test
    • To run unit test in --watch mode, yarn test-watch or npm run test-watch
  4. Implement the changes, and write test cases. Make sure that all unit test pass.
  5. To generate the final build, run yarn build or npm build.
  6. Push your code and create a Pull Request

Release and publish to NPM

Note: Make sure you're logged in to NPM before doing this.

To create a tag and publish to NPM run npm run release or yarn release. This will show an interactive session on terminal, where you can choose the semantic version to publish. After that, the github release page will be opened for adding the change logs.

Licence

MIT @ YourCompany.com

About

Quick and easy way to create an npm module. Clone, Edit and Publish

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published