{"id":26347187,"url":"https://github.com/jtkdvlp/re-frame-readfile-fx","last_synced_at":"2025-10-10T05:10:25.764Z","repository":{"id":62433149,"uuid":"84468667","full_name":"jtkDvlp/re-frame-readfile-fx","owner":"jtkDvlp","description":"A re-frame effects handler for reading files via FileReader-Object","archived":false,"fork":false,"pushed_at":"2023-04-14T18:45:00.000Z","size":11,"stargazers_count":6,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-23T16:08:23.991Z","etag":null,"topics":["filereader","re-frame","readfiles"],"latest_commit_sha":null,"homepage":null,"language":"Clojure","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/jtkDvlp.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,"zenodo":null}},"created_at":"2017-03-09T17:13:29.000Z","updated_at":"2022-05-03T11:56:56.000Z","dependencies_parsed_at":"2025-06-17T19:05:05.660Z","dependency_job_id":"80b09f3b-2d08-4383-a03f-37ffd20ed633","html_url":"https://github.com/jtkDvlp/re-frame-readfile-fx","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/jtkDvlp/re-frame-readfile-fx","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jtkDvlp%2Fre-frame-readfile-fx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jtkDvlp%2Fre-frame-readfile-fx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jtkDvlp%2Fre-frame-readfile-fx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jtkDvlp%2Fre-frame-readfile-fx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jtkDvlp","download_url":"https://codeload.github.com/jtkDvlp/re-frame-readfile-fx/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jtkDvlp%2Fre-frame-readfile-fx/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279002787,"owners_count":26083468,"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-10-10T02:00:06.843Z","response_time":62,"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":["filereader","re-frame","readfiles"],"created_at":"2025-03-16T07:16:02.028Z","updated_at":"2025-10-10T05:10:25.749Z","avatar_url":"https://github.com/jtkDvlp.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Clojars Project](https://img.shields.io/clojars/v/jtk-dvlp/re-frame-readfile-fx.svg)](https://clojars.org/jtk-dvlp/re-frame-readfile-fx)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://github.com/jtkDvlp/re-frame-worker-fx/blob/master/LICENSE)\n\n# Readfile effect handler for re-frame\n\nThis [re-frame](https://github.com/Day8/re-frame) library contains an [FileReader-Object](https://developer.mozilla.org/docs/Web/API/FileReader) [effect handler](https://github.com/Day8/re-frame/tree/develop/docs). The handler can be addressed by `:readfile`.\n\n## Changelog\n\n### 2.0.0\n\n* Move package into ns `jtk-dvlp.re-frame`\n* Read files is a `map` of meta and content now.\n* Clean up project.clj\n* Move to figwheel-main for dev and test\n\n## Getting started\n\n### Get it / add dependency\n\nAdd the following dependency to your `project.cljs`:\u003cbr\u003e\n[![Clojars Project](https://img.shields.io/clojars/v/jtk-dvlp/re-frame-readfile-fx.svg)](https://clojars.org/jtk-dvlp/re-frame-readfile-fx)\n\n### Usage\n\nSee the following minimal code example or the [test.cljs](https://github.com/jtkDvlp/re-frame-readfile-fx/blob/master/test/jtk_dvlp/re_frame/readfile_fx_test.cljs).\n\n```clojure\n(ns your.project\n  (:require [re-frame.core :as re-frame]\n            [jtk-dvlp.re-frame.readfile-fx]))\n\n(re-frame/reg-event-fx\n :some-event\n (fn [_ [_ files]]\n   {:readfile {;; vector of file- and / or blob-objects\n               :files files\n               ;; charset via string for all files,\n               ;; via vector of strings for every single file\n               ;; or nil for default (utf-8). nil also works\n               ;; from within vector (for every single file)\n               :charsets [\"windows-1252\" nil]\n               ;; dispatched on success conjoined with read files\n               :on-success [:your-success-event]\n               ;; dispatched on error conjoined with read files\n               :on-error [:your-error-event]}}))\n```\n\nHow to get files from file-input see the [test.cljs](https://github.com/jtkDvlp/re-frame-readfile-fx/blob/master/test/jtk_dvlp/re_frame/readfile_fx_test.cljs).\n\n## Appendix\n\nI´d be thankful to receive patches, comments and constructive criticism.\n\nHope the package is useful :-)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjtkdvlp%2Fre-frame-readfile-fx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjtkdvlp%2Fre-frame-readfile-fx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjtkdvlp%2Fre-frame-readfile-fx/lists"}