
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
@slimplate/github
Advanced tools
A github library to interface with git directly.
Github Functions
add(filepath, opts) // //Git add a file to the local filesystem.
checkStatus() // //Check the status of the entire project by getting the status of each file.
clone(opts) // //Clone a repository to the local filesystem.
commit(message, opts) // //Git commit the changes in the local filesystem.
diff(commitHash1, commitHash2) // //Get the difference between two commits, including added, removed, and modified files.
exists(filename = '') // Check if a file or directory exists in the filesystem.
fetch(opts) // Fetch updates from the remote repository.
getAll(rootDir, existing = []) // Get a list of all files in the local filesystem.
getAllItems() // Get all items from the collection, including their metadata and content.
getAuthUrl() // Get the URL of the repository with username and password for basic authentication.
getCommitStatusWithDiff() // Get the commit status with the difference between the remote and local commits.
glob(g) // Get all filenames that match a glob pattern in the local filesystem.
init() // Initialize the Git repository by pulling changes if the repository exists or cloning it if it doesn't.
listServerRefs(opts) // Get a remote list of Git references.
log(opts = {}) // Get the Git log for the repository.
mkdirp(dirname) // Recursively create a directory.
push(opts) // Push changes from the local filesystem to the remote repository.
read(filename, encoding) // Read the contents of a file from the local filesystem.
rm(filepath, opts) // Remove a file or directory from the local filesystem.
status(opts = {}) // Get the Git status of the project.
write(filename, contents) // Write contents to a file in the local filesystem.
FAQs
Functions to interface with git
We found that @slimplate/github 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
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.