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

find-rc

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

find-rc - npm Package Compare versions

Comparing version 3.0.1 to 4.0.0

.eslintcache

8

package.json
{
"name": "find-rc",
"version": "3.0.1",
"version": "4.0.0",
"description": "Find a .rc file given a name",

@@ -23,6 +23,6 @@ "main": "lib/index.js",

"devDependencies": {
"belly-button": "^2.0.1",
"code": "^3.0.0",
"lab": "^10.7.1"
"belly-button": "5.x.x",
"code": "5.x.x",
"lab": "18.x.x"
}
}

@@ -13,25 +13,22 @@ 'use strict';

it('finds an rc in the current working directory', (done) => {
it('finds an rc in the current working directory', () => {
const filePath = FindRc('find');
expect(filePath).to.exist();
expect(filePath).to.contain('.findrc.js');
done();
});
it('finds a file in a parent directory', (done) => {
it('finds a file in a parent directory', () => {
const filePath = FindRc('find', __dirname);
expect(filePath).to.exist();
expect(filePath).to.contain('.findrc.js');
done();
});
it('returns undefined when a file isn\'t found', (done) => {
it('returns undefined when a file isn\'t found', () => {
const filePath = FindRc('no_way_will_this_exist');
expect(filePath).to.not.exist();
done();
});
it('returns undefined when a file isn\'t found and env.USERPROFILE is set', (done) => {
it('returns undefined when a file isn\'t found and env.USERPROFILE is set', () => {
process.env.USERPROFILE = process.env.HOME;

@@ -41,3 +38,2 @@ delete process.env.HOME;

expect(filePath).to.not.exist();
done();
});

Sorry, the diff of this file is not supported yet

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