{"id":18455455,"url":"https://github.com/danielhaim1/terser-dir","last_synced_at":"2025-04-08T04:34:00.146Z","repository":{"id":35852796,"uuid":"219751749","full_name":"danielhaim1/terser-dir","owner":"danielhaim1","description":"Run terser on a folder, minify the results into a file/folder.","archived":false,"fork":false,"pushed_at":"2025-02-21T06:46:46.000Z","size":552,"stargazers_count":3,"open_issues_count":3,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-23T06:11:23.915Z","etag":null,"topics":[],"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/danielhaim1.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":"2019-11-05T13:29:03.000Z","updated_at":"2024-11-05T15:18:29.000Z","dependencies_parsed_at":"2024-01-08T20:00:59.704Z","dependency_job_id":"5ec84555-58ff-4988-acb3-0faa440b18b0","html_url":"https://github.com/danielhaim1/terser-dir","commit_stats":{"total_commits":13,"total_committers":2,"mean_commits":6.5,"dds":0.3076923076923077,"last_synced_commit":"d8d077011f9b54dcbff7c088d96b3c45e6f11e50"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielhaim1%2Fterser-dir","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielhaim1%2Fterser-dir/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielhaim1%2Fterser-dir/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielhaim1%2Fterser-dir/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danielhaim1","download_url":"https://codeload.github.com/danielhaim1/terser-dir/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247779796,"owners_count":20994569,"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-06T08:08:06.277Z","updated_at":"2025-04-08T04:33:59.775Z","avatar_url":"https://github.com/danielhaim1.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"terser-dir\n==========\n\n\u003cimg src=\"https://terser.org/img/terser-banner-logo.svg\" alt=\"Terser\" style=\"width: 150px; height: auto;\"\u003e\n\n[![npm version](https://img.shields.io/npm/v/terser-dir)](https://www.npmjs.com/package/terser-dir)\n[![Downloads](https://img.shields.io/npm/dt/terser-dir.svg)](https://www.npmjs.com/package/terser-dir)\n![GitHub](https://img.shields.io/github/license/danielhaim1/terser-dir)\n\nCommand to run `terser` on a folder and minify the result in a single file or a new folder.\n\nGetting Started\n---------------\n\nInstall the module with: `npm i terser-dir`\n\nDocumentation\n-------------\n\n### Usage\n```shell\nterser-dir      path [options]\n\n--output        Specify a file/folder to write the minified code\n--config-file   Specify a configuration file for Terser\n--help          Print this list and exit.\n```\n\n### Examples\n```shell\n$ terser-dir src/js --output .bundle/\n$ terser-dir src/js --output .bundle/all.min.js\n$ terser-dir demo/files --config-file demo/config.json\n$ terser-dir demo/files --output app-test-noconfig.min.js\n```\n\n### Configuration Options\n\nYou can also specify a configuration file in JSON format. The configuration file can define input files, output paths, and debugging options.\n\n```json\n{\n  \"input\": [\n    \"demo/files/file1.js\",\n    \"demo/files/dir1/file2.js\"\n  ],\n  \"output\": \"dist/app-test-config.min.js\",\n  \"debug\": true\n}\n```\n\n### Output Files\n\nThe output file can be customized, for example:\n\n*   `app-test-config.min.js` - when using a configuration file.\n*   `app-test-noconfig.min.js` - when specifying input files directly.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielhaim1%2Fterser-dir","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanielhaim1%2Fterser-dir","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielhaim1%2Fterser-dir/lists"}