{"id":19859056,"url":"https://github.com/mikedevelops/file-catalogue","last_synced_at":"2026-04-12T07:31:25.187Z","repository":{"id":144062927,"uuid":"82726487","full_name":"mikedevelops/file-catalogue","owner":"mikedevelops","description":"Create a JSON file within your build directory with an array of files passed through the Webpack.","archived":false,"fork":false,"pushed_at":"2017-03-02T11:41:38.000Z","size":188,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-28T23:58:38.157Z","etag":null,"topics":["nodejs","webpack"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mikedevelops.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2017-02-21T20:58:51.000Z","updated_at":"2017-02-22T09:57:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"05637cd2-ad34-4a72-9c2c-90fcb57a314e","html_url":"https://github.com/mikedevelops/file-catalogue","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/mikedevelops/file-catalogue","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikedevelops%2Ffile-catalogue","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikedevelops%2Ffile-catalogue/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikedevelops%2Ffile-catalogue/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikedevelops%2Ffile-catalogue/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mikedevelops","download_url":"https://codeload.github.com/mikedevelops/file-catalogue/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikedevelops%2Ffile-catalogue/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31707953,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-12T06:22:27.080Z","status":"ssl_error","status_checked_at":"2026-04-12T06:21:52.710Z","response_time":58,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["nodejs","webpack"],"created_at":"2024-11-12T14:25:30.698Z","updated_at":"2026-04-12T07:31:25.172Z","avatar_url":"https://github.com/mikedevelops.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# File Catalogue\n\nCreate a JSON file within your build directory with an array of files passed through the Webpack compiler.\n\n### Installation\n\n`npm install mikedevelops/file-catalogue`\n\n### Usage\n\n_assets/_\n```\n| assets\n  - foo.jpg\n  - bar.png\n```\n\n_webpack.config.js_\n ```javascript\nconst FileCatalogue  = require('file-catalogue')\n\nmodule.exports = {\n  // ... your config\n\n  plugins: [\n    new FileCatalogue({\n      filename: 'assets',\n      test: /\\.(jpg|png)$/\n    })\n  ]\n}\n ```\n\n _assets.json_\n ```javascript\n {\"assets\":[\"foo.jpg\",\"bar.png\"]}\n ```\n\n### Options\n\n----\n\n`filename: [string] | default: assets.json`\n\nThe name of the output catalogue file. Directories will be resolved, `bar/foo` will place `foo.json` in a directory named `bar` within the build directory.\n\n----\n\n`test: [RegExp]`\n\nA regular expression to be run against each file that passes through the Webpack compiler. If no test is provided all files will be pushed to the catalogue.\n\n----\n\n### What problem does this solve?\n\nThis plugin was created to solve a problem with pre-loading and caching assets on a native iOS app (built with Phonegap). Unlike the web, I was unable to access a directories contents with a XHR request.\n\nBuilding this plugin allowed me to request the catalogue file with a XHR request, parse, then preload and cache each asset on the device.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikedevelops%2Ffile-catalogue","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmikedevelops%2Ffile-catalogue","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikedevelops%2Ffile-catalogue/lists"}