Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

detect-invalid-requires

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

detect-invalid-requires

utility to detect requires that are not legal in a case-sensitive OS

  • 0.1.11
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

Build Status

-- Defunct --

Notice: This repository is no longer worked on

Please use valiquire - it more fully supports node module paths (including folder and absolute paths).



Simple utility to detect invalid relative require paths that do not exist. It is case-sensitive, so in particular it is useful when developers are all on case insensitive dev machines (OSX and Windows), yet CI server is Linux.

Usage

CLI

install globally via

npm install -g detect-invalid-requires

run via

detect-invalid-requires [options] (files)

###Options

-i, --ignore list Comma delimited list of path strings to ignore

###Example

detect-invalid-requires -i thirdparty,3rd .

API

detector(path: String, options: Object = {}, callback: Function(files:Array[{file, path}]))

###Example

var detector = require('detect-invalid-requires')

detector('./some/path', options, function (invalids) {
    invalids.forEach(function (invalid) {
        console.error('File ', invalid.file, ' contains required module that cannot be found ', invalid.path);
    })
})

FAQs

Package last updated on 14 Nov 2014

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