Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
An NPM module for checking if a local directory is up to date with a remote repository.
An NPM module for checking if a local directory is up to date with a remote repository.
Install gitwatch with npm:
npm install gitwatch
Once you've installed gitwatch, enter its directory node_modules/gitwatch/
and run:
node check.js
This is checking the tools-data repo and will make any changes in the tools-data directory.
Create file called app.js and require gitwatch and check if a repo is behind
gitwatch = require("gitwatch");
gitwatch({
provider: "Github",
repository: "mwils-bp/sam",
directory: "sam",
force: true // use at own will
}).is("behind", function(error, files) {
// I will do grunt tasks here
console.log(files);
});
Type: String
Choose what your git SCM is going to be:
Type: String
The repository you will be watching, this usually looks like this:
repository: "username/repo",
Type: String
The directory which will be placing the watched repository.
directory: "mydirectory",
Type: String
The period of time in which to check for new commits.
every: "1 hour",
Option | Status |
---|---|
month / months | In Development |
week / weeks | In Development |
day / days | In Development |
hour / hours | In Development |
minute / minutes | In Development |
seconds | In Development |
Type: Boolean
To force the repository to pull new commits no matter what.
FAQs
An NPM module for checking if a local directory is up to date with a remote repository.
The npm package gitwatch receives a total of 4 weekly downloads. As such, gitwatch popularity was classified as not popular.
We found that gitwatch demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.