Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Creates a new GitHub repository from your current folder, and then runs the initial git
commands to commit and push the contents. If the folder has a package.json
it will pull the repo's description
, name
and homepage
from that.
Install:
npm install ghrepo -g
The example below pushes the contents of my-module
to a new GitHub repository with the specified commit message. On first run, it will prompt for authentication.
#make a new module
mkdir my-module
cd my-module
npm init
#create a new GitHub repository
ghrepo -m 'first commit yolo'
This should open the browser to the newly created GitHub repository on your account, and push the current contents of the folder.
Usage:
ghrepo [opts]
Options:
--help show help
--version, -v prints version number
--name, -n the name of the repository
--description, -d the description
--homepage, -h the homepage URL
--private, -p mark the repository as private (default false)
--message, -m the commit message (default "first commit")
--bare, -b do not run any git commands after creating the repo
--no-open do not open the GitHub repo in the browser after creation
--org, -o the organization to create the repo in (optional)
The --name
, --description
, and --homepage
will default to package.json
. If no package.json
is found, --name
defaults to the current folder's name.
The --org
will default to the same user as specified in the repository
URL in package.json. Otherwise, it will default to the username specified from the initial authentication.
You can personalize the default commit message with npm config:
npm config set init.ghrepo.message 'YOLO!'
Now --message
will default to 'YOLO!'
.
MIT, see LICENSE.md for details.
FAQs
create a new GitHub repo from your current folder
The npm package ghrepo receives a total of 3 weekly downloads. As such, ghrepo popularity was classified as not popular.
We found that ghrepo demonstrated a not healthy version release cadence and project activity because the last version was released 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.