New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

base-module

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

base-module

Use this Base Module to create your own NPM module.

  • 0.1.3
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

Base Module

Use this Base Module to create your own NPM module.

Features

  • Linting according Airbnb JavaScript Style Guide
  • Support and compilation of ES6 code
  • Unit tests with Mocha, Chai and Sinon
  • Test coverage check with Istanbul / NYC

Workflow

Preparation

  1. Install Node.js
  2. Install Atom text editor
  3. Install Atom package linter-eslint and its dependencies

Setup

  1. Get available module name by testing https://www.npmjs.com/package/<module-name>
  2. Create module folder with mkdir <module-name>
  3. Open module folder with cd <module-name>
  4. Create empty package.json file with echo '{}' > package.json
  5. Install Base Module with npm install --save-dev base-module

Development

Testing

  • Run npm test to run all tests once
    • Run npm run test-eslint to run code tests once
    • Run npm run test-mocha to run unit tests once
    • Run npm run test-mocha-watch to run continuous unit tests
      • Run CTRL + C to stop the continuous unit tests

Compiling

  • Run npm run build to compile ES6 code to ES5 code in folder lib

FAQs

Package last updated on 04 Jun 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc