Comparing version 0.1.1 to 0.2.0
'use strict'; | ||
var fs = require('fs'); | ||
var path = require('path'); | ||
@@ -13,3 +12,3 @@ function findone(targets, cb) { | ||
var target = targets.pop(); | ||
fs.stat(target, function(err, stats) { | ||
fs.stat(target, function (err) { | ||
if (err) { | ||
@@ -16,0 +15,0 @@ findone(targets, cb); |
{ | ||
"name": "afile", | ||
"version": "0.1.1", | ||
"version": "0.2.0", | ||
"description": "Find a file on the list", | ||
@@ -16,3 +16,3 @@ "license": "MIT", | ||
"scripts": { | ||
"test": "mocha" | ||
"test": "xo && ava" | ||
}, | ||
@@ -23,7 +23,11 @@ "files": [ | ||
"keywords": [ | ||
"" | ||
"file", | ||
"lookup", | ||
"find", | ||
"afile" | ||
], | ||
"devDependencies": { | ||
"mocha": "*" | ||
"ava": "^0.9.1", | ||
"xo": "^0.12.1" | ||
} | ||
} |
@@ -1,2 +0,2 @@ | ||
# afile | ||
# afile [![Build Status](https://travis-ci.org/ragingwind/afile.svg?branch=master)](https://travis-ci.org/ragingwind/afile) | ||
@@ -21,8 +21,7 @@ > Find a file on the list | ||
'/' | ||
].map(function(p) { | ||
].map(p => { | ||
return path.join(p, '.bowerrc'); | ||
}); | ||
afile(targets, function(afilepath) { | ||
console.log(afilepath); | ||
afile(targets, afilepath => { | ||
//=> /home/yours/.bowerrc | ||
@@ -29,0 +28,0 @@ }); |
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
2585
2
23
36