
Research
Security News
Lazarus Strikes npm Again with New Wave of Malicious Packages
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy 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
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.
Security News
Opengrep continues building momentum with the alpha release of its Playground tool, demonstrating the project's rapid evolution just two months after its initial launch.