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

afile

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

afile - npm Package Compare versions

Comparing version 0.1.1 to 0.2.0

3

index.js
'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 @@ });

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