Installations
npm install breadcrumb-trail-literally
Developer Guide
Typescript
No
Module System
CommonJS
Node Version
4.1.0
NPM Version
2.14.3
Score
70.6
Supply Chain
80.2
Quality
74.8
Maintenance
100
Vulnerability
100
License
Releases
Unable to fetch releases
Contributors
Unable to fetch Contributors
Languages
JavaScript (100%)
Developer
YanshuoH
Download Statistics
Total Downloads
1,061
Last Day
1
Last Week
5
Last Month
7
Last Year
78
GitHub Statistics
1 Stars
23 Commits
2 Watching
1 Branches
1 Contributors
Bundle Size
1.08 kB
Minified
543.00 B
Minified + Gzipped
Package Meta Information
Latest Version
1.0.0
Package Id
breadcrumb-trail-literally@1.0.0
Size
4.46 kB
NPM Version
2.14.3
Node Version
4.1.0
Total Downloads
Cumulative downloads
Total Downloads
1,061
Last day
0%
1
Compared to previous day
Last week
0%
5
Compared to previous week
Last month
75%
7
Compared to previous month
Last year
-38.1%
78
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
breadcrumb-trail-literally
A literally breadcrumb trail fairy tale. Take some breadcrumbs (specific files) and they will guide you home.
Goal
Sometimes we need to build a tree for some specific files through a filesystem(eg. RequireJS)
For example, I want to find all Force user through the defined root dir and it should be an array like:
[
'.force',
'obi-wan/.force',
'anakin/.force',
'anakin/luke/.force',
'anakin/leia/kylo/.force',
]
All Force users should be marked as a breadcrumb of the big picture and I'm sure you noticed that Princess Leia is not marked, although she's Force sensitive.
So, with the above array, it is possible to do something interesting, like: define their power and skills? LOL
Usage
Basically you can find usage in the test file which use the directory example as filesystem.
var breadcrumbTrail = require('breadcrumb-trail-literally');
breadcrumbTrail.map({
baseDir: 'example',
validate: '.force',
pathType: 'relative',
}, function(err, results) {
console.log(results);
})
Options
- baseDir: As root directory. mandatory.
- validate:
Function|String
. If set to String, will check if filename contains the string. You can also defined a custom function for check:
validate: function(filename) {
var n = filename.search(/^\.(no-)?force/i);
return n > -1;
},
- pathType:
absolute|relative
. It not set, default is 'relative'
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: MIT License: LICENSE:0
Reason
Found 0/23 approved changesets -- score normalized to 0
Reason
no SAST tool detected
Details
- Warn: no pull requests merged into dev branch
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Score
3
/10
Last Scanned on 2025-02-03
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