{"id":19352803,"url":"https://github.com/thisconnect/fildes-extra","last_synced_at":"2026-05-16T02:39:54.789Z","repository":{"id":57235342,"uuid":"46112372","full_name":"thisconnect/fildes-extra","owner":"thisconnect","description":null,"archived":false,"fork":false,"pushed_at":"2020-05-25T04:08:59.000Z","size":32,"stargazers_count":1,"open_issues_count":5,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-06T22:15:54.772Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/thisconnect.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":"2015-11-13T09:22:55.000Z","updated_at":"2023-03-10T12:29:31.000Z","dependencies_parsed_at":"2022-09-04T21:20:44.904Z","dependency_job_id":null,"html_url":"https://github.com/thisconnect/fildes-extra","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thisconnect%2Ffildes-extra","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thisconnect%2Ffildes-extra/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thisconnect%2Ffildes-extra/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thisconnect%2Ffildes-extra/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thisconnect","download_url":"https://codeload.github.com/thisconnect/fildes-extra/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240466551,"owners_count":19805857,"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":[],"created_at":"2024-11-10T04:40:31.327Z","updated_at":"2026-05-16T02:39:49.745Z","avatar_url":"https://github.com/thisconnect.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Fildes Extra\n\n\n[![Build Status](https://img.shields.io/travis/thisconnect/fildes-extra/master.svg?style=flat-square\u0026maxAge=1800)](https://travis-ci.org/thisconnect/fildes-extra)\n[![Dependencies](https://img.shields.io/david/thisconnect/fildes-extra.svg?style=flat-square\u0026maxAge=1800)](https://david-dm.org/thisconnect/fildes-extra)\n[![Dev Dependencies](https://img.shields.io/david/dev/thisconnect/fildes-extra.svg?style=flat-square\u0026maxAge=1800)](https://david-dm.org/thisconnect/fildes-extra?type=dev)\n\nExtends [fildes](https://github.com/thisconnect/fildes) with `glob`, `cpy`, `rimraf` and `trash`/`empty-trash`.\n\n\n### Install\n\n```bash\nnpm i --save fildes-extra\n```\n\n\n### Examples\n\n```javascript\nvar files = require('fildes-extra');\n\n// make dir\nfiles.mkdir('./a/new/dir')\n.then(function(){\n    // remove dir\n    return files.rmdir('./a/new');\n})\n.then(function(){\n    // copy dir\n    return files.copy(['./a'], './b');\n})\n.then(function(){\n    console.log('done!');\n})\n.catch(function(error){\n    console.error(error);\n})\n\n```\n\n\n### find (pattern)\n\nPromise `fildes.find` alias `fildes.glob`\nuses [glob](https://www.npmjs.com/package/glob) (NPM Documentation).\n\n```javascript\nfildes.find('**/*.{jpg,png}')\n.then(function(images){\n    console.log('found', images.length, 'images')\n})\n```\n\n\n### rm (path)\n\nPromise `fildes.rm` alias `fildes.rmdir`\nuses [rimraf](https://www.npmjs.com/package/rimraf) (NPM Documentation).\n\n```javascript\nfildes.rm('./path/to/dir')\n.then(function(){\n    console.log('directory removed!');\n});\n```\n\n\n### copy (files, destination, [options])\n\nPromise `fildes.cp` alias `fildes.copy` uses [cpy](https://www.npmjs.com/package/cpy) (NPM Documentation).\n\n```javascript\nfildes.cp(['./data/*.txt'], './destination')\n.then(function(){\n    console.log('directory copied!');\n});\n```\n\n\n### trash (files)\n\nPromise `trash` uses [trash](https://www.npmjs.com/package/trash) (NPM Documentation).\n\n```javascript\nfildes.trash(['./data/file.txt'])\n.then(function(){\n    console.log('directory copied!');\n});\n```\n\n\n### emptyTrash ()\n\nPromise `empty-trash` uses [empty-trash](https://www.npmjs.com/package/empty-trash) (NPM Documentation).\n\n```javascript\nfildes.emptyTrash()\n.then(function(){\n    console.log('trash emptied!');\n});\n```\n\n\n### Test\n\n*WARNING:* tests will empty your trash!\n\n```bash\nnpm test\n\n# debug all\nDEBUG=fildes* npm test\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthisconnect%2Ffildes-extra","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthisconnect%2Ffildes-extra","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthisconnect%2Ffildes-extra/lists"}