{"id":37904459,"url":"https://github.com/loadingio/ldfile","last_synced_at":"2026-01-16T17:08:29.682Z","repository":{"id":42206966,"uuid":"188508196","full_name":"loadingio/ldfile","owner":"loadingio","description":null,"archived":false,"fork":false,"pushed_at":"2024-06-20T07:26:43.000Z","size":1325,"stargazers_count":2,"open_issues_count":5,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-02T23:30:51.350Z","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/loadingio.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2019-05-25T01:47:51.000Z","updated_at":"2024-06-20T07:26:47.000Z","dependencies_parsed_at":"2024-02-02T04:48:16.660Z","dependency_job_id":null,"html_url":"https://github.com/loadingio/ldfile","commit_stats":{"total_commits":32,"total_committers":1,"mean_commits":32.0,"dds":0.0,"last_synced_commit":"971930f0e762cfcf72d5209115d3f51ac7c504d7"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/loadingio/ldfile","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loadingio%2Fldfile","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loadingio%2Fldfile/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loadingio%2Fldfile/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loadingio%2Fldfile/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/loadingio","download_url":"https://codeload.github.com/loadingio/ldfile/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loadingio%2Fldfile/sbom","scorecard":{"id":596471,"data":{"date":"2025-08-11","repo":{"name":"github.com/loadingio/ldfile","commit":"675d86159d6fffb4e4e80ed7d0ede2fd7e94e9d3"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.5,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v2.0.1 not signed: https://api.github.com/repos/loadingio/ldfile/releases/99508890","Warn: release artifact v2.0.0 not signed: https://api.github.com/repos/loadingio/ldfile/releases/57476116","Warn: release artifact v1.0.1 not signed: https://api.github.com/repos/loadingio/ldfile/releases/50735823","Warn: release artifact v1.0.0 not signed: https://api.github.com/repos/loadingio/ldfile/releases/47064816","Warn: release artifact v0.0.1 not signed: https://api.github.com/repos/loadingio/ldfile/releases/47063907","Warn: release artifact v2.0.1 does not have provenance: https://api.github.com/repos/loadingio/ldfile/releases/99508890","Warn: release artifact v2.0.0 does not have provenance: https://api.github.com/repos/loadingio/ldfile/releases/57476116","Warn: release artifact v1.0.1 does not have provenance: https://api.github.com/repos/loadingio/ldfile/releases/50735823","Warn: release artifact v1.0.0 does not have provenance: https://api.github.com/repos/loadingio/ldfile/releases/47064816","Warn: release artifact v0.0.1 does not have provenance: https://api.github.com/repos/loadingio/ldfile/releases/47063907"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":0,"reason":"24 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-qwcr-r2fm-qrc7","Warn: Project is vulnerable to: GHSA-vc8w-jr9v-vj7f","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-x9w5-v3q2-3rhw","Warn: Project is vulnerable to: GHSA-pxg6-pf52-xh8x","Warn: Project is vulnerable to: GHSA-434g-2637-qmqr","Warn: Project is vulnerable to: GHSA-49q7-c7j4-3p7m","Warn: Project is vulnerable to: GHSA-977x-g7h5-7qgw","Warn: Project is vulnerable to: GHSA-f7q4-pwc6-w24p","Warn: Project is vulnerable to: GHSA-fc9h-whq2-v747","Warn: Project is vulnerable to: GHSA-vjh7-7g9h-fjfh","Warn: Project is vulnerable to: GHSA-rv95-896h-c2vc","Warn: Project is vulnerable to: GHSA-qw6h-vgh9-j6wx","Warn: Project is vulnerable to: GHSA-9wv6-86v2-598j","Warn: Project is vulnerable to: GHSA-rhx6-c78j-4q9w","Warn: Project is vulnerable to: GHSA-h7cp-r72f-jxh6","Warn: Project is vulnerable to: GHSA-v62p-rq8g-8h59","Warn: Project is vulnerable to: GHSA-3965-hpx2-q597","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-m6fv-jmcg-4jfg","Warn: Project is vulnerable to: GHSA-cm22-4g7w-348p","Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-20T23:15:45.238Z","repository_id":42206966,"created_at":"2025-08-20T23:15:45.238Z","updated_at":"2025-08-20T23:15:45.238Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28480081,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T11:59:17.896Z","status":"ssl_error","status_checked_at":"2026-01-16T11:55:55.838Z","response_time":107,"last_error":"SSL_read: 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":[],"created_at":"2026-01-16T17:08:27.104Z","updated_at":"2026-01-16T17:08:29.678Z","avatar_url":"https://github.com/loadingio.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ldfile\n\nfile loader helper in vanilla JS.\n\n\n## Usage\n\ninstall vis npm:\n\n    npm install --save ldfile\n\n\ninclude required js file:\n\n    \u003cscript src=\"path-to-ldfile/index.js\"\u003e\u003c/script\u003e\n\n\nthen:\n\n    var ldf = new ldfile(config);\n    ldf.on(\"load\", function(ret) {\n      for(i=0;i\u003cret.length;i++) {\n        console.log(\n          ret[i].result,    # file content\n          ret[i].file       # file object\n        );\n      }\n    });\n\n\n## Constructor Options\n\n * `root`: HTMLElement or CSS Selector for the input element.\n * `type`: one of \u003c[dataurl text binary arraybuffer blob bloburl]\u003e. default binary.\n * `ldcv`: ldcover for choosing encoding for text type. fallback to browser prompt if omitted.\n\n\n## API\n\n * `on`: add event listener. Possible events:\n   - `load`: fired when input value changed, along with a list of objects with following members:\n     - `file`: the file object provided by browser.\n     - `result`: file content parsed by ldfile.\n\n\n## ldfile / Static Methods\n\n * `fromURL(url, type, encoding)` - load file by URL. return promise resolving to {result, file} object.\n   - params:\n     - `type`: the same as the type in ldfile object configuration.\n     - `encoding`: default utf-8 and only applicable when type is text.\n   - returns a Promise resolving with an object with following fields:\n     - `result`: parsed content based on given `type`.\n     - `file`: corresponding file object\n   - this function can be used to load file from Data URLs.\n * `fromFile(file, type, encoding)` - load File object\n   - same with `fromURL` except that the first param (file) is a File object.\n * `download(opt)` - download file based on `opt`, which contains:\n   - `href`: url for the file to download. either `href` or `blob` should be given.\n   - `blob`: file to download. ignored if `href` is provided\n   - `mime`: file format. ( e.g., \"application/pdf\" )\n   - `name`: saved filename \n\n\n## Compatibility\n\nldfile uses following HTML5 features, which may not be supported by all browsers:\n\n * File Reader ( IE \u003c= 9; read as binary needs polyfill for IE \u003c= 11 )\n * Promise  ( IE \u003c= 11, some mobile browsers )\n\nPlease use Polyfills to support legacy browsers if necessary.\n\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Floadingio%2Fldfile","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Floadingio%2Fldfile","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Floadingio%2Fldfile/lists"}