{"id":18665355,"url":"https://github.com/robertklep/package-bundler","last_synced_at":"2025-11-06T10:30:41.948Z","repository":{"id":142182138,"uuid":"568815395","full_name":"robertklep/package-bundler","owner":"robertklep","description":"Bundle a Node.js package into a single file.","archived":false,"fork":false,"pushed_at":"2023-03-31T13:09:35.000Z","size":7,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-02-15T02:43:08.358Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/robertklep.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":"2022-11-21T13:20:52.000Z","updated_at":"2024-12-25T20:01:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"7ec07119-8551-479d-a87c-44e53259c7fe","html_url":"https://github.com/robertklep/package-bundler","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robertklep%2Fpackage-bundler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robertklep%2Fpackage-bundler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robertklep%2Fpackage-bundler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robertklep%2Fpackage-bundler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/robertklep","download_url":"https://codeload.github.com/robertklep/package-bundler/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239492646,"owners_count":19647994,"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-07T08:27:20.608Z","updated_at":"2025-11-06T10:30:41.912Z","avatar_url":"https://github.com/robertklep.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Package Bundler\n\nBundle a Node.js module into a single file.\n\n## Prerequisites\n\nDepends on having a working, and recent, Node.js installation (including `npm`).\n\n## Installation\n\nInstall the bundler script using NPM (requires Git to be installed as a CLI tool):\n```\n$ npm install -g https://github.com/robertklep/package-bundler\n```\n\nAlternatively, you can [download the code from Github as a ZIP file](https://github.com/robertklep/package-bundler/archive/refs/heads/main.zip) and run `npm install -g` from the `package-bundler-main` directory after unzipping the file.\n\n## How to use\n\n#### Bundle a complete Node.js package\n```\n$ package-bundler lodash\n```\n\n#### Bundle some specific imports from a package\n```\n$ package-bundler lodash flattenDeep merge\n```\n\n#### Bundle a specific package version\n```\n$ package-bundler lodash@4.0.0\n```\n\n## What it does\n\nThe script will create a temporary directory in which it will install the Node.js package to be bundled. Then it will write a small wrapper file that exports the package (or just the specific imports).\n\nIt will then run `ncc` against the wrapper file to bundle everything into a single file inside a directory named after the package. It will move this directory into your current working directory, and you should be able to load it from your main code.\n\n## Limitations\n\n* Not all packages can be bundled, especially ones that use dynamic `require` calls or packages like `require-all`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobertklep%2Fpackage-bundler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frobertklep%2Fpackage-bundler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobertklep%2Fpackage-bundler/lists"}