Gathering detailed insights and metrics for git-loader
Gathering detailed insights and metrics for git-loader
Gathering detailed insights and metrics for git-loader
Gathering detailed insights and metrics for git-loader
@graphql-tools/git-loader
A set of utils for faster development of GraphQL tools
@graphql-toolkit/git-loader
A set of utils for faster development of GraphQL tools
@cz-git/loader
commitizen and commitlint configure loader for cz-git
@graphql-inspector/git-loader
Load GraphQL Schema and Documents from Git repository
a basic commonjs require mod to allow access to git version of module 🛍️
npm install git-loader
Typescript
Module System
Node Version
NPM Version
70.3
Supply Chain
80.8
Quality
75
Maintenance
100
Vulnerability
100
License
JavaScript (100%)
Total Downloads
527
Last Day
1
Last Week
1
Last Month
16
Last Year
84
45 Commits
1 Watchers
8 Branches
1 Contributors
Updated on May 17, 2020
Minified
Minified + Gzipped
Latest Version
1.0.0
Package Id
git-loader@1.0.0
Unpacked Size
12.46 kB
Size
4.33 kB
File Count
4
NPM Version
6.14.4
Node Version
12.16.3
Cumulative downloads
Total Downloads
Last Day
0%
1
Compared to previous day
Last Week
-75%
1
Compared to previous week
Last Month
100%
16
Compared to previous month
Last Year
-8.7%
84
Compared to previous year
4
This module provide the ability to require a commonjs module at a given version in the repository history.
This may be usefull to monitor performance enhancement during a refactor or avoiding the use of submodule pointing at other branch of the same repository.
git bisect
command can provide the same kind of feature, but I wanted to play with git and module override.
This module must be installed as a devDependencies since it won't and should'nt be of any use on production servers. Which means you should install it using npm install --save-dev git-loader
and use it in ci
or local
environment like this
1require('git-loader') 2const previousVersionOfModuleA = './A#previous-tag.git' 3const currentVersionOfModuleA = './A' 4 5// ... do your stuff 6
You can also run the same using node -r git-loader perf.js
where perf.js
looks like
1const previousVersionOfModuleA = './A#previous-tag.git' 2const currentVersionOfModuleA = './A' 3 4// ... do your stuff 5
Moreover this module needs git to be installed in the environment you will on which you will use it, but there's a a lot of chance this may be the case, since it seems to be one of the npm requirement to enable some of its feature like git dependencies. (note for myself, I may have use the npm's internal git lib instead of writing my own ...)
This package makes use of the commitizen
and husky
packages, see how to install it on you project and how to use it.
All the roadmap for this project is handled using github features like the github's projects page, milestone, issues ... to be honest I'm still wondering what will be the most efficient way of handling it.
One of the strongest limitation of this module is that when a scripts is loaded at a given version, it could require other modules which exists in your project at this specific revision.
Those modules may not exist at the current point of history of the working folder and even if they still exists they may exports a different signature.
Same is true for the dependencies defined in your package files.
All those limitation has been clearly identified and may be addressed or not in future versions.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
Found 0/9 approved changesets -- score normalized to 0
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
Reason
project is not fuzzed
Details
Reason
license file not detected
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
Reason
30 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-06-23
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