Security News
Namecheap Takes Down Polyfill.io Service Following Supply Chain Attack
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
vfile-find-down
Advanced tools
Readme
Find vfiles by searching the file system downwards.
npm:
npm install vfile-find-down
var findDown = require('vfile-find-down')
findDown.all('.md', console.log)
Yields:
null [ VFile {
data: {},
messages: [],
history: [ '/Users/tilde/projects/oss/vfile-find-down/readme.md' ],
cwd: '/Users/tilde/projects/oss/vfile-find-down' } ]
findDown.all(tests[, paths], callback)
Search for tests
downwards. Invokes callback with either an error
or an array of files passing tests
.
Note: Virtual Files are not read (their contents
is not populated).
tests
Things to search for (string|Function|Array.<tests>
).
If an array is passed in, any test must match a given file for it to be included.
If a string
is passed in, the basename
or extname
of files
must match it for them to be included (and hidden directories and
node_modules
will not be searched).
Otherwise, they must be function
.
paths
Place(s) to searching from (Array.<string>
or string
, default:
process.cwd()
).
callback
Function invoked with all matching files (function cb(err[, files])
).
findDown.one(tests[, paths], callback)
Like findDown.all
, but invokes callback
with the first found
file, or null
.
function test(file, stats)
Check whether a virtual file should be included. Invoked with a vfile and a stats object.
true
or findDown.INCLUDE
— Include the file in the results;findDown.SKIP
— Do not search inside this directory;findDown.BREAK
— Stop searching for files;The different flags can be combined by using the pipe operator:
findDown.INCLUDE | findDown.SKIP
.
See contributing.md
in vfile/vfile
for ways to get started.
This organisation has a Code of Conduct. By interacting with this repository, organisation, or community you agree to abide by its terms.
FAQs
vfile utility to find one or more files by searching the file system downwards
The npm package vfile-find-down receives a total of 495 weekly downloads. As such, vfile-find-down popularity was classified as not popular.
We found that vfile-find-down demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
Security News
OpenSSF is warning open source maintainers to stay vigilant against reputation farming on GitHub, where users artificially inflate their status by manipulating interactions on closed issues and PRs.
Security News
A JavaScript library maintainer is under fire after merging a controversial PR to support legacy versions of Node.js.