Socket
Socket
Sign inDemoInstall

cosmiconfig

Package Overview
Dependencies
13
Maintainers
1
Versions
56
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.2.0 to 0.3.0

.eslintignore

4

index.js

@@ -29,4 +29,4 @@ // Much inspiration from https://github.com/sindresorhus/find-up

function find() {
if (options.config) {
loadDefinedFile(options.config, options.format).then(function(result) {
if (options.configPath) {
loadDefinedFile(options.configPath, options.format).then(function(result) {
return finishWith(result);

@@ -33,0 +33,0 @@ }).catch(reject);

{
"name": "cosmiconfig",
"version": "0.2.0",
"version": "0.3.0",
"description": "Find and load configuration from a package.json property, rc file, or CommonJS module",

@@ -25,5 +25,2 @@ "main": "index.js",

"homepage": "https://github.com/davidtheclark/cosmiconfig#readme",
"files": [
"index.js"
],
"dependencies": {

@@ -30,0 +27,0 @@ "graceful-fs": "^4.1.2",

@@ -96,2 +96,8 @@ # cosmiconfig [![Build Status](https://travis-ci.org/davidtheclark/cosmiconfig.svg?branch=master)](https://travis-ci.org/davidtheclark/cosmiconfig)

##### configPath
Type: `string`
Path to a configuration file. cosmiconfig will read it and try to parse it as JSON, YAML, or JS.
## Differences from [rc](https://github.com/dominictarr/rc)

@@ -98,0 +104,0 @@

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc