{"id":46484627,"url":"https://github.com/tomvlk/node-split-file","last_synced_at":"2026-03-06T09:06:32.324Z","repository":{"id":36415670,"uuid":"40720631","full_name":"tomvlk/node-split-file","owner":"tomvlk","description":":seedling: NodeJS Module to split and merge files for several purposes like transporting over unstable networks.","archived":false,"fork":false,"pushed_at":"2025-12-02T13:29:48.000Z","size":1107,"stargazers_count":44,"open_issues_count":3,"forks_count":13,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-12-05T07:51:55.719Z","etag":null,"topics":["bytes","files","nodejs","npm-package","promise","split"],"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/tomvlk.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":"2015-08-14T14:57:52.000Z","updated_at":"2025-12-03T15:43:05.000Z","dependencies_parsed_at":"2024-06-18T15:18:30.200Z","dependency_job_id":"4033b32a-fad4-4be1-a0d7-95cf9a1e4194","html_url":"https://github.com/tomvlk/node-split-file","commit_stats":{"total_commits":79,"total_committers":12,"mean_commits":6.583333333333333,"dds":0.430379746835443,"last_synced_commit":"257465471b616e755dd416e5d06f1266c712cfac"},"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"purl":"pkg:github/tomvlk/node-split-file","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomvlk%2Fnode-split-file","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomvlk%2Fnode-split-file/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomvlk%2Fnode-split-file/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomvlk%2Fnode-split-file/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tomvlk","download_url":"https://codeload.github.com/tomvlk/node-split-file/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomvlk%2Fnode-split-file/sbom","scorecard":{"id":893359,"data":{"date":"2025-08-11","repo":{"name":"github.com/tomvlk/node-split-file","commit":"257465471b616e755dd416e5d06f1266c712cfac"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.7,"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":"Code-Review","score":0,"reason":"Found 2/23 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":"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":"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":"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":"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":"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":"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":-1,"reason":"no releases found","details":null,"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 9 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"22 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-w573-4hg7-7wgq","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-896r-f27r-55mw","Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-qrpm-p2h7-hrv2","Warn: Project is vulnerable to: GHSA-mwcw-c2x4-8c55","Warn: Project is vulnerable to: GHSA-hrpp-h998-j3pp","Warn: Project is vulnerable to: GHSA-p8p7-x288-28g6","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-jgrx-mgxx-jf9v","Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3","Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7","Warn: Project is vulnerable to: GHSA-3h5v-q93c-6h6q"],"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-24T12:44:02.099Z","repository_id":36415670,"created_at":"2025-08-24T12:44:02.099Z","updated_at":"2025-08-24T12:44:02.099Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30168626,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-06T07:56:45.623Z","status":"ssl_error","status_checked_at":"2026-03-06T07:55:55.621Z","response_time":250,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["bytes","files","nodejs","npm-package","promise","split"],"created_at":"2026-03-06T09:06:30.926Z","updated_at":"2026-03-06T09:06:32.278Z","avatar_url":"https://github.com/tomvlk.png","language":"JavaScript","readme":"# Split File\n[![Build Status](https://travis-ci.org/tomvlk/node-split-file.svg?branch=master)](https://travis-ci.org/tomvlk/node-split-file)\n\nSplit and merge file in multiple parts. Splittable with number of parts or maximum bytes per part\n\n## Programmatically usage\nThis section contains information on how to use the split-file module in your code.\n\n### Installation\nYou can install and save an entry to your package.json with the following command:\n```\nnpm i --save split-file\n```\n\n### Usage\nAll methods return a Promise (bluebird) which results in some respose if some.\n\n#### Splitting file with number of parts\n```\nsplitFile(file, dest?) =\u003e Promise\u003cstring[]\u003e\n```\n**Consumes**:\n- file: Path to the file to split.\n- dest: Folder for output, defaults to . (current folder)\n\n**Produces**:\n- Promise\u003cstring[]\u003e: Promise with results in an array of part names (full paths) of the splitted files.\n\nExample:\n```javascript\nconst splitFile = require('split-file');\n\nsplitFile.splitFile(__dirname + '/testfile.bin', 3)\n  .then((names) =\u003e {\n    console.log(names);\n  })\n  .catch((err) =\u003e {\n    console.log('Error: ', err);\n  });\n```\n\n#### Splitting file with maximum bytes per part\n```\nsplitFileBySize(file, maxSize, dest?) =\u003e Promise\u003cstring[]\u003e\n```\n**Consumes**:\n- file: Path to the file to split.\n- maxSize: Max size of the splitted parts. (bytes)\n- dest: Folder for output, defaults to . (current folder)\n\n**Produces**:\n- Promise\u003cstring[]\u003e: Promise with results in an array of part names (full paths) of the splitted files.\n\nExample:\n```javascript\nconst splitFile = require('split-file');\n\nsplitFile.splitFileBySize(__dirname + '/testfile.bin', 457000)\n  .then((names) =\u003e {\n    console.log(names);\n  })\n  .catch((err) =\u003e {\n    console.log('Error: ', err);\n  });\n```\n\n#### Merge parts\n```\nmergeFiles(names, outputFile) =\u003e Promise\u003c\u003e\n```\n**Consumes**:\n- names: Input files, array with full part paths.\n- outputFile: Full path of the output file.\n\n**Produces**:\n- Promise\u003c\u003e: Promise that results in an empty resolving.\n\n\nExample:\n```javascript\nconst splitFile = require('split-file');\n\nsplitFile.mergeFiles(names, __dirname + '/testfile-output.bin')\n  .then(() =\u003e {\n    console.log('Done!');\n  })\n  .catch((err) =\u003e {\n    console.log('Error: ', err);\n  });\n```\n\n## CLI Tool\n\n### Installation\n\nTo use the module from the commandline you can install this package in your global context:\n```\nnpm i -g split-file\n```\n*Some situations you need admin rights (sudo or windows run as admin)*\n\n### Usage\n\nThe CLI tool works like you use it in your own package.\n\n```\nUsage: split-file -s input.bin 5\n       split-file -x input.bin 457000\n       split-file -m output.bin part1 part2 ...\n\n -s \u003cinput\u003e \u003cnum_parts\u003e\n    Split the input file in the number of parts given.\n\n -x \u003cinput\u003e \u003cmax_size\u003e\n    Split the input file into multiple parts with file size maximum of max_size bytes\n\n -m \u003coutput\u003e \u003cpart\u003e \u003cpart\u003e ...\n    Merge the given parts into the output file.\n```\n\n\n# License\nLicense is MIT, see LICENSE","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomvlk%2Fnode-split-file","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftomvlk%2Fnode-split-file","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomvlk%2Fnode-split-file/lists"}