{"id":21469293,"url":"https://github.com/kbismark/dir-bit","last_synced_at":"2026-04-28T10:36:21.839Z","repository":{"id":155186748,"uuid":"419028323","full_name":"KBismark/dir-bit","owner":"KBismark","description":"Asynchronously removes  directories and files in node js.","archived":false,"fork":false,"pushed_at":"2021-10-21T17:18:42.000Z","size":11,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"fun","last_synced_at":"2025-03-12T04:38:47.602Z","etag":null,"topics":["async-delete","async-remove","delete-files","directory","filesystem","fs","node-fs","nodejs","remove","remove-directory"],"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/KBismark.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-10-19T17:34:22.000Z","updated_at":"2023-03-15T10:14:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"34c04199-282d-46cc-9f47-f9fc24537165","html_url":"https://github.com/KBismark/dir-bit","commit_stats":{"total_commits":9,"total_committers":1,"mean_commits":9.0,"dds":0.0,"last_synced_commit":"2c128c9fa46cb1f299a51c693cc5441fcfee9f91"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KBismark%2Fdir-bit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KBismark%2Fdir-bit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KBismark%2Fdir-bit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KBismark%2Fdir-bit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KBismark","download_url":"https://codeload.github.com/KBismark/dir-bit/tar.gz/refs/heads/fun","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243985728,"owners_count":20379194,"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","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":["async-delete","async-remove","delete-files","directory","filesystem","fs","node-fs","nodejs","remove","remove-directory"],"created_at":"2024-11-23T09:15:04.000Z","updated_at":"2026-04-28T10:36:21.800Z","avatar_url":"https://github.com/KBismark.png","language":"JavaScript","readme":"# dir-bit\nAsynchronously removes  directories and files in nodejs. This module will help you remove or delete an entire directory or many files in just one line code.\n\n## Methods\n- `removeDir` This method removes an entire directory asynchronously. It takes two arguments: `path` and `callback`\n\n- `deleteFiles` This method asynchronously deletes files in a directory. It takes three arguments: `path`, `filesArr` and `callback`\n\n- `override_fs` This module uses the `fs` module to perform operations. Use this method to change that behavior.\n\n\u003e ```js\n\u003e var dirbit = require(\"dir-bit\");\n\u003e function callback(){};\n\u003e \n\u003e // Deletes \"./unwanted-dir\" and everything (direcotories, nested directories or files) in it.\n\u003e dirbit.removeDir(\"./unwanted-dir\",callback); //callback is optional.\n\u003e \n\u003e // Deletes files in the filesArray from \"./unwanted-dir\".\n\u003e var filesArray = [\"somefile.txt\",\"anotherfile.png\"];\n\u003e dirbit.deleteFiles(\"./unwanted-dir\",filesArray,callback); //callback is optional.\n\u003e \n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkbismark%2Fdir-bit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkbismark%2Fdir-bit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkbismark%2Fdir-bit/lists"}