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

npm-lint

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

npm-lint

A configurable package.json linter with a focus on security

  • 0.1.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-71.43%
Maintainers
1
Weekly downloads
 
Created
Source

package-linter

A linter for npm & node package.json files with a focus on security.

Github | Issues

This is currently a proof of concept for a package that reads a .npmlint.json file in a directory and from this can parse a package.json file and enforce these rules.

This could then be used in pre-commit/pre-push hooks.

The currently implemented options are:

includes:

This is an array of features a package must include. name and version are hard coded as required, as per npm itself. Then you can add fields that are needed. There will be an excludes also added once the code is moved to be more plugin based.

scripts:

scripts is an object that currently takes one property, allow. This scans each script for the know applications and reports anything that is not in the list. For example in this repo it will report Script test has a unknown executable exit

FAQs

Package last updated on 11 Jul 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