{"id":22893387,"url":"https://github.com/tuckn/node-wsh-packager","last_synced_at":"2026-05-07T06:37:17.287Z","repository":{"id":57168195,"uuid":"219081456","full_name":"tuckn/node-wsh-packager","owner":"tuckn","description":"Packaging WSH scripts that are defined in a Windows Script File(.wsf).","archived":false,"fork":false,"pushed_at":"2022-07-07T21:40:18.000Z","size":469,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-10T06:17:44.103Z","etag":null,"topics":["cli","compress","jscript","minify","nodejs","npm","package","windows","wsf","wsh"],"latest_commit_sha":null,"homepage":"https://assets.tuckn.net/docs/node-wsh-packager/","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/tuckn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":["tuckn"],"patreon":"tuckn","open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":null}},"created_at":"2019-11-02T00:17:14.000Z","updated_at":"2024-06-27T09:31:37.000Z","dependencies_parsed_at":"2022-08-29T09:10:33.846Z","dependency_job_id":null,"html_url":"https://github.com/tuckn/node-wsh-packager","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuckn%2Fnode-wsh-packager","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuckn%2Fnode-wsh-packager/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuckn%2Fnode-wsh-packager/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuckn%2Fnode-wsh-packager/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tuckn","download_url":"https://codeload.github.com/tuckn/node-wsh-packager/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246552512,"owners_count":20795826,"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":["cli","compress","jscript","minify","nodejs","npm","package","windows","wsf","wsh"],"created_at":"2024-12-13T23:14:16.517Z","updated_at":"2026-05-07T06:37:12.230Z","avatar_url":"https://github.com/tuckn.png","language":"JavaScript","funding_links":["https://github.com/sponsors/tuckn","https://patreon.com/tuckn"],"categories":[],"sub_categories":[],"readme":"# Node.js: wsh-packager\n\nNode.js CLI to bundle WSH scripts (.js, .vbs) that are defined in a Windows Script File (.wsf).\nWSH is an abbreviation for Windows Script Host.\n\n## Installation\n\n```console\nnpm install -g @tuckn/wsh-packager\n```\n\nor download a [released binary file](https://github.com/tuckn/node-wsh-packager/releases).\n\n## Usage\n\n```console\n\u003e wsh-packager bundle --help\nUsage: wsh-packager bundle [options] \u003cdirPath\u003e\n\nBundles .js, .vbs (WSH scripts) files defined in .wsf file.\n\nOptions:\n  -V, --version              output the version number\n  -J, --job-id \u003cRegExp\u003e      A job id to be bundled (Default: \"\\.(js|vbs|wsf)$\").\n  -D, --base-dir \u003cpath\u003e      Default is the \u003cdirPath\u003e\n  -I, --ignore-src \u003cRegExp\u003e  Ex. \"main\\.js$\"\n  -h, --help                 display help for command\n```\n\n### Basic Example\n\n```console\nD:\\MyWshFolder\\\n├─ Package.wsf\n└─ src\\\n    ├─ Function.js\n    ├─ Object.js\n    └─ JSON.js\n```\n\nPackage.wsf is\n\n```xml\n\u003cpackage\u003e\n  \u003cjob id = \"./dist/JSON.min.js\"\u003e\n    \u003cscript language=\"JScript\" src=\"./src/Function.js\"\u003e\u003c/script\u003e\n    \u003cscript language=\"JScript\" src=\"./src/Object.js\"\u003e\u003c/script\u003e\n    \u003cscript language=\"JScript\" src=\"./src/JSON.js\"\u003e\u003c/script\u003e\n  \u003c/job\u003e\n\u003c/package\u003e\n```\n\nand execute the below command.\n\n```console\n\u003e wsh-packager bundle \"D:\\MyWshFolder\"\n```\n\nThe result\n\n```console\nD:\\MyWshFolder\\\n├─ Package.wsf\n├─ dist\\\n│  └─ JSON.min.js\n└─ src\\\n    ├─ Function.js\n    ├─ Object.js\n    └─ JSON.js\n```\n\nThe created _JSON.min.js_ is packed with the three .js files that are minified.\n\n### Multiple Jobs Packaging\n\n```console\nD:\\MyWshFolder\\\n├─ Package.wsf\n└─ src\\\n    ├─ CLI.js\n    ├─ Excel.vbs\n    ├─ Function.js\n    ├─ Object.js\n    ├─ JSON.js\n    └─ Util.vbs\n```\n\nPackage.wsf is\n\n```xml\n\u003cpackage\u003e\n  \u003cjob id = \"./dist/MyModule.vbs\"\u003e\n    \u003cscript language=\"VBScript\" src=\"./src/Util.vbs\"\u003e\u003c/script\u003e\n    \u003cscript language=\"VBScript\" src=\"./src/Excel.vbs\"\u003e\u003c/script\u003e\n  \u003c/job\u003e\n  \u003cjob id = \"./dist/JSON.min.js\"\u003e\n    \u003cscript language=\"JScript\" src=\"./src/Function.js\"\u003e\u003c/script\u003e\n    \u003cscript language=\"JScript\" src=\"./src/Object.js\"\u003e\u003c/script\u003e\n    \u003cscript language=\"JScript\" src=\"./src/JSON.js\"\u003e\u003c/script\u003e\n  \u003c/job\u003e\n  \u003cjob id = \"./dist/Run.wsf\"\u003e\n    \u003cscript language=\"JScript\" src=\"./src/Function.js\"\u003e\u003c/script\u003e\n    \u003cscript language=\"VBScript\" src=\"./src/Excel.vbs\"\u003e\u003c/script\u003e\n    \u003cscript language=\"JScript\" src=\"./src/CLI.js\"\u003e\u003c/script\u003e\n  \u003c/job\u003e\n\u003c/package\u003e\n```\n\nand execute the below command.\n\n```console\n\u003e wsh-packager bundle \"D:\\MyWshFolder\"\n```\n\nThe result\n\n```console\nD:\\MyWshFolder\\\n├─ Package.wsf\n├─ dist\\\n│  ├─ JSON.min.js\n│  ├─ MyModule.vbs\n│  └─ Run.wsf\n└─ src\\\n    ├─ CLI.js\n    ├─ Excel.vbs\n    ├─ Function.js\n    ├─ Object.js\n    ├─ JSON.js\n    └─ Util.vbs\n```\n\n_Run.wsf_ is an executable file on Windows of most versions.\n\n```console\n\u003e cscript //nologo \"D:\\MyWshFolder\\dist\\Run.wsf\"\n```\n\n## Documentation\n\nSee all specifications [here](https://docs.tuckn.net/node-wsh-packager).\n\n## License\n\nMIT\n\nCopyright (c) 2020 [Tuckn](https://github.com/tuckn)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftuckn%2Fnode-wsh-packager","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftuckn%2Fnode-wsh-packager","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftuckn%2Fnode-wsh-packager/lists"}