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

configfiles

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

configfiles - npm Package Compare versions

Comparing version 0.2.0 to 0.3.0

3

index.js

@@ -9,4 +9,5 @@ const expand = require('./lib/expand');

} else {
return [expand(files)];
var output = expand(files);
return Array.isArray(output) ? output : [output];
}
};

@@ -17,3 +17,3 @@ module.exports = function (input) {

if(typeof files[0] === 'string') {
return input;
return { src: files };
} else {

@@ -20,0 +20,0 @@ // otherwise files is fully expanded already, and we can just return it

{
"name": "configfiles",
"description": "Get files from a configuration using globule.",
"version": "0.2.0",
"version": "0.3.0",
"homepage": "https://github.com/tkellen/node-configfiles",

@@ -6,0 +6,0 @@ "author": {

@@ -64,2 +64,10 @@ # configfiles [![Build Status](https://secure.travis-ci.org/tkellen/node-configfiles.png)](http://travis-ci.org/tkellen/node-configfiles)

configfiles({
files: ['test/fixtures/*.js']
});
// [ { src:
// [ 'test/fixtures/1.js',
// 'test/fixtures/2.js',
// 'test/fixtures/3.js' ] } ]
configfiles({
expand: true,

@@ -66,0 +74,0 @@ cwd: 'test/fixtures',

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