{"id":27215737,"url":"https://github.com/mihai-vlc/uglifyjs-folder","last_synced_at":"2025-04-10T04:43:09.424Z","repository":{"id":12981062,"uuid":"15659822","full_name":"mihai-vlc/uglifyjs-folder","owner":"mihai-vlc","description":"Command to run uglifyjs / terser on a folder and minify the result in a single file or a new folder.","archived":false,"fork":false,"pushed_at":"2023-07-13T04:43:32.000Z","size":343,"stargazers_count":58,"open_issues_count":4,"forks_count":13,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-13T22:18:36.857Z","etag":null,"topics":["cli","javascript","minify","terser","uglifyjs","uglifyjs-folder"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/uglifyjs-folder","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/mihai-vlc.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":"2014-01-05T22:19:43.000Z","updated_at":"2025-01-13T15:17:40.000Z","dependencies_parsed_at":"2024-06-18T15:27:52.985Z","dependency_job_id":null,"html_url":"https://github.com/mihai-vlc/uglifyjs-folder","commit_stats":{"total_commits":62,"total_committers":6,"mean_commits":"10.333333333333334","dds":0.08064516129032262,"last_synced_commit":"1e50ec22890b9c0f3c81cdcab3f1bcaedd1b69ba"},"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mihai-vlc%2Fuglifyjs-folder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mihai-vlc%2Fuglifyjs-folder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mihai-vlc%2Fuglifyjs-folder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mihai-vlc%2Fuglifyjs-folder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mihai-vlc","download_url":"https://codeload.github.com/mihai-vlc/uglifyjs-folder/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248161231,"owners_count":21057552,"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","javascript","minify","terser","uglifyjs","uglifyjs-folder"],"created_at":"2025-04-10T04:43:08.879Z","updated_at":"2025-04-10T04:43:09.406Z","avatar_url":"https://github.com/mihai-vlc.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# uglifyjs-folder\n\n![tests](https://github.com/mihai-vlc/uglifyjs-folder/actions/workflows/test.yml/badge.svg)\n\nCommand to run uglifyjs on a folder and minify the result in a single file or a new folder.\nUses the [terser](https://www.npmjs.com/package/terser) package to perform the minification.\n\n## Getting Started\n\nInstall the module with: `npm install uglifyjs-folder -g`\n\n## Documentation\n\n    Usage\n      uglifyjs-folder path [options]\n\n    options:\n      -c --comments      Add a comment with the file name.\n      -o --output        Specify a file/folder to write the minified code\n      -e --each          Minify each file independently\n      -x --extension     Minified file extension (default: .min.js)\n      -p --pattern       Specifies a comma separated glob patterns for the file selections. Default: **/*.js\n         --pseparator    Specifies the separator for the pattern input. Default: ,\n         --version       Prints the current version from package.json\n         --config-file   Specifies a json configuration file for the terser module\n         --log-level     Specifies the log level used when processing the files. Default: info\n      -h --help          Print this list and exit.\n\n## Examples\n\n    $ uglifyjs-folder test-folder\n    $ uglifyjs-folder test-folder --comments\n    $ uglifyjs-folder test-folder -o all.min.js\n    $ uglifyjs-folder test-folder --output all.min.js --pattern \"**/*.js,!**/*min.js\" # ignore minified files\n    $ uglifyjs-folder test-folder -eo newFolder\n    $ uglifyjs-folder test-folder -eo newFolder --log-level error\n    $ uglifyjs-folder test-folder-es6 -o newFolder\n    $ uglifyjs-folder test-folder -e -x .js -o test-folder # careful: overwrite all files in test-folder\n    $ uglifyjs-folder test-folder --config-file \"./uglify.json\"\n    where uglify.json contains\n    {\n      \"keep_fnames\": true\n    }\n\n## Contributing\n\nPull requests are appreciated.\n\n## Release History\n\n- 25/Jun/2023\n\n  - Upgraded terser to 5.18.1\n\n- 29/Dec/2022\n\n  - Upgraded terser to 5.16.1\n\n- 31/Oct/2022\n\n  - Fixed the line ending during npm publish. Fixes #34\n\n- 21/Aug/2022\n\n  - Upgraded terser to 5.14.2\n\n- 02/Apr/2022\n\n  - Upgraded terser to 5.12.1\n  - Upgraded the development dependencies to the latest version\n  - Removed the testing on node v10 from travis ci\n  - Fixes #32\n\n- 21/Jun/2021\n\n  - Upgraded terser to 5.7.0\n  - Modified the package API from synchronous to async/await\n    The cli interface remained the same.\n\n- 23/Jul/2020\n  - Released 2.0.0 with the terser minifier.\n  - Removed uglify-js and uglify-es from the dependencies.\n  - Upgraded all the dependencies to the latest version.\n  - Adds snapshots testing to the existing testing suite\n  - Adds the --log-level option\n- 20/Apr/2020 - Updated code to use promises for the mkdrip call.\n- 18/Apr/2020 - Updated the version for the mkdirp package #22\n- 25/Nov/2017 - Added support for sourcemaps via the uglifyjs config file  \n  Exmaple configuration:\n\n```\n{\n  \"sourceMap\": {\n    \"root\": \"../src\",\n    \"url\": \"{file}.map\"\n  }\n}\n```\n\n- 11/Nov/2017 - Added support for the --config-file option\n- 11/Nov/2017 - Upgraded to uglify-js@3 and uglify-es@3\n- 27/Aug/2017 - Added support for the --pattern and --pseparator flags.\n- 06/Feb/2017 - Added support for the --harmony flag.\n- 28/Dec/2016 - Added support for sub folder output files.\n  Example: `uglifyjs-folder test-folder -o newFolder/nested/all.min.js`\n- 01/Oct/2016 - Added the --extension flag\n- 12/Oct/2014 - Removes the extra files, organizes the code\n- 05/Jan/2014 - Initial release\n\n## License\n\nCopyright (c) 2014 - 2020 Mihai Ionut Vilcu\nLicensed under the MIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmihai-vlc%2Fuglifyjs-folder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmihai-vlc%2Fuglifyjs-folder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmihai-vlc%2Fuglifyjs-folder/lists"}