
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
Download any repository or subdirectory on GitHub with support for Node.js and the CLI
Download any repository or subdirectory on GitHub with support for Node.js and the CLI
npx go-git-it <url> [outputDir]
Use cases
# cwd is ~/mydevspace/
npx go-git-it https://github.com/extension-js/extension.js
# Creates ~/mydevspace/extension.js/ folder (like git clone)
npx go-git-it https://github.com/extension-js/extension.js/tree/main/templates/react/images
# Creates ~/mydevspace/images/ folder
npx go-git-it https://github.com/extension-js/extension.js/blob/main/templates/react/manifest.json
# Downloads ~/mydevspace/manifest.json
The second command argument is the output directory:
npx go-git-it https://github.com/extension-js/extension.js ./my-browser-extension
# Creates ./my-browser-extension/extension.js/ folder (like git clone)
go-git-it can also run on a Node.js program.
npm install go-git-it
import goGitIt from 'go-git-it';
// Assume cwd is ~/mydevspace/
await goGitIt('https://github.com/extension-js/extension.js');
// Creates ~/mydevspace/extension.js/ folder (like git clone)
await goGitIt(
'https://github.com/extension-js/extension.js/tree/main/templates/react/images',
);
// Creates ~/mydevspace/images/ folder
await goGitIt(
'https://github.com/extension-js/extension.js/blob/main/templates/react/manifest.json',
);
// Downloads ~/mydevspace/manifest.json
The second parameter is the output path:
import goGitIt from 'go-git-it';
// Assume cwd is ~/mydevspace/
await goGitIt(
'https://github.com/extension-js/extension.js',
'./my-browser-extension',
);
// Creates ./my-browser-extension/extension.js/ folder (like git clone)
Type: string
The URL to the path you want to download. If a folder, will download its content as well.
Type: string
Custom path to the outputDir (defaults to the working directory)
Type: string
Adds a custom text message instead of default config. This option overrides the success message as well.
MIT (c) Cezar Augusto.
FAQs
Download any repository or subdirectory on GitHub with support for Node.js and the CLI
The npm package go-git-it receives a total of 2,353 weekly downloads. As such, go-git-it popularity was classified as popular.
We found that go-git-it 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
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.