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 - npm Package Compare versions

Comparing version 0.1.4 to 0.1.5

2

package.json
{
"name": "detect-invalid-requires",
"version": "0.1.4",
"version": "0.1.5",
"description": "utility to detect requires that are not legal in a case-sensitive OS",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -1,2 +0,4 @@

Simple utility to detect invalid modular requires that do not match in a case sensitive environment. Useful when developers are all on case insensitive dev machines (OSX and Windows), yet CI server is Linux.
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.

@@ -7,2 +9,8 @@ Usage

npm install -g detect-invalid-requires
detect-invalid-requires (files)
detect-invalid-requires [options] (files)
Options
=====
`-i, --ignore list` Comma delimited list of path strings to ignore
'use strict';
var expect = require('chai').expect;
var path = require('path');
var detector = require('../lib/index');

@@ -9,3 +8,3 @@

it('finds invalid paths that are case sensitive', function (done) {
var invalid = detector('./test/harness', {}, function (invalid) {
detector('./test/harness', {}, function (invalid) {
expect(invalid.length).to.equal(1);

@@ -17,3 +16,3 @@ expect(invalid[0].path).to.equal('./fileb');

it('ignores patterns', function (done) {
var invalid = detector('./test/harness', { ignore: ['folderA'] }, function (invalid) {
detector('./test/harness', { ignore: ['folderA'] }, function (invalid) {
expect(invalid.length).to.equal(0);

@@ -20,0 +19,0 @@ done();

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