
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
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 void1.2.0 (2023-04-30)
FAQs
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.
The npm package github-folder-sync receives a total of 1 weekly downloads. As such, github-folder-sync popularity was classified as not popular.
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.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.