configfiles
Advanced tools
Comparing version 0.2.0 to 0.3.0
@@ -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', |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6976
93
81