Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
github-folder-sync
Advanced tools
This library can be used to sync a folder from your device to GitHub. This is a fun project and I do not recommend to push large files.
This library can be used to sync a folder from your device to GitHub. This is a fun project, and I do not recommend pushing the large files.
npm i github-folder-sync
import { homedir } from 'os'
import { join } from 'path'
import { GitHubFolderSync } from 'github-folder-sync'
const gitHubFolderSync = new GitHubFolderSync(
join(homedir(), 'Desktop', 'my-folder'),
60_000 * 5, // Sync in every 5 minutes.
'some-repo',
'ghp_c23sd2lMESl5nZsDs4Szzsj5Na2SiS1Yu62k',
'datomarjanidze',
'main'
)
gitHubFolderSync.start()
GitHubFolderSync
class constructor parameters:
folderPath {string}
: Absolute path of a folder to syncsyncInterval {number}
: Frequency of sync in millisecondsgitHubRepoName {string}
: Repository name on GitHubgitHubToken {string}
: Personal access token generated on GitHubgitHubUsername {string}
: GitHub username/organizationbranchName {string}
: The name of the branch you want to syncGitHubFolderSync
class methods:
start
: Starts syncing. Return value voidstop
: Stops syncing. Return value voidsync (async)
: In case it is needed to manually execute sync and
not wait until next sync tick. Return value voidFAQs
This library can be used to sync a folder from your device to GitHub. This is a fun project and I do not recommend to push large files.
We found that github-folder-sync 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.