{"id":18726836,"url":"https://github.com/voltraco/fs-changes","last_synced_at":"2025-08-22T11:44:09.402Z","repository":{"id":57242168,"uuid":"55358311","full_name":"voltraco/fs-changes","owner":"voltraco","description":"A persistent file system changes monitor, backed by leveldb","archived":false,"fork":false,"pushed_at":"2017-03-23T15:59:01.000Z","size":12,"stargazers_count":11,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-09T06:37:09.265Z","etag":null,"topics":["changes","filesystem","leveldb","monitoring"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/voltraco.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-04-03T17:10:49.000Z","updated_at":"2023-07-30T19:09:26.000Z","dependencies_parsed_at":"2022-09-04T23:50:11.393Z","dependency_job_id":null,"html_url":"https://github.com/voltraco/fs-changes","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/voltraco/fs-changes","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/voltraco%2Ffs-changes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/voltraco%2Ffs-changes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/voltraco%2Ffs-changes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/voltraco%2Ffs-changes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/voltraco","download_url":"https://codeload.github.com/voltraco/fs-changes/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/voltraco%2Ffs-changes/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271632766,"owners_count":24793744,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-22T02:00:08.480Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["changes","filesystem","leveldb","monitoring"],"created_at":"2024-11-07T14:15:38.651Z","updated_at":"2025-08-22T11:44:09.347Z","avatar_url":"https://github.com/voltraco.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SYNOPSIS\nA simple cross platform leveldb backed file system watcher.\n\n# DESCRIPTION\nWatches the file system recursively, stores a snapshot in leveldb, compares\nand emits changes in the form of new-line-delimited json. Also emits events\nfor changes made since the process was last run.\n\n# USAGE\n\n### fsch(1)\nUsed as a user command.\n\n```bash\nfsch \u003cpath/to/watch\u003e \u003cregex-pattern\u003e [path/to/cache]\n```\n\n### fs-changes(3)\nUsed as a library.\n\n```js\nconst changes = require('fs-changes')\n\nconst opts = {\n  pattern: /\\.txt$/,\n  dir: './files',\n  cache: '.cache'\n}\n\nchanges(opts, events =\u003e { // returns `events` after doing initial diff\n\n  events.on('added', path =\u003e console.log({ path, type: 'added' }))\n  events.on('modified', path =\u003e console.log({ path, type: 'modified' }))\n  events.on('removed', path =\u003e console.log({ path, type: 'removed' }))\n}) // returns an instance of levelup\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvoltraco%2Ffs-changes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvoltraco%2Ffs-changes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvoltraco%2Ffs-changes/lists"}