Gathering detailed insights and metrics for fined
Gathering detailed insights and metrics for fined
Gathering detailed insights and metrics for fined
Gathering detailed insights and metrics for fined
npm install fined
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
12 Stars
21 Commits
6 Forks
7 Watching
2 Branches
4 Contributors
Updated on 05 Nov 2023
JavaScript (100%)
Cumulative downloads
Total Downloads
Last day
-3%
625,595
Compared to previous day
Last week
3.3%
3,393,995
Compared to previous week
Last month
16.4%
13,581,784
Compared to previous month
Last year
5.1%
144,540,758
Compared to previous year
Find a file given a declaration of locations.
1var fined = require('fined'); 2 3fined({ path: 'path/to/file', extensions: ['.js', '.json'] }); 4// => { path: '/absolute/path/to/file.js', extension: '.js' } (if file exists) 5// => null (if file does not exist) 6 7var opts = { 8 name: '.app', 9 cwd: '.', 10 extensions: { 11 rc: 'default-rc-loader', 12 '.yml': 'default-yml-loader', 13 }, 14}; 15 16fined({ path: '.' }, opts); 17// => { path: '/absolute/of/cwd/.app.yml', extension: { '.yml': 'default-yml-loader' } } 18 19fined({ path: '~', extensions: { rc: 'some-special-rc-loader' } }, opts); 20// => { path: '/User/home/.apprc', extension: { 'rc': 'some-special-rc-loader' } }
pathObj [string | object] : a path setting for finding a file.
opts [object] : a plain object supplements pathObj
.
pathObj
and opts
can have same properties:
path
and for finding up.This function returns a plain object which consists of following properties if a file exists otherwise null.
MIT
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
security policy file detected
Details
Reason
Found 7/20 approved changesets -- score normalized to 3
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2024-11-18
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More