{"id":22828705,"url":"https://github.com/busterc/distiller","last_synced_at":"2025-04-23T16:25:36.900Z","repository":{"id":57213037,"uuid":"71931570","full_name":"busterc/distiller","owner":"busterc","description":":droplet: Extracts only the dist resources from various packages","archived":false,"fork":false,"pushed_at":"2018-08-25T21:49:21.000Z","size":35,"stargazers_count":10,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-10T03:39:45.995Z","etag":null,"topics":["deps","dist","distribution","libs","modules"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/busterc.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}},"created_at":"2016-10-25T19:27:28.000Z","updated_at":"2025-01-05T15:10:46.000Z","dependencies_parsed_at":"2022-08-24T21:41:50.902Z","dependency_job_id":null,"html_url":"https://github.com/busterc/distiller","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/busterc%2Fdistiller","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/busterc%2Fdistiller/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/busterc%2Fdistiller/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/busterc%2Fdistiller/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/busterc","download_url":"https://codeload.github.com/busterc/distiller/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249977279,"owners_count":21354855,"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":["deps","dist","distribution","libs","modules"],"created_at":"2024-12-12T19:11:41.577Z","updated_at":"2025-04-23T16:25:36.881Z","avatar_url":"https://github.com/busterc.png","language":"JavaScript","readme":"# distiller [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Dependency Status][daviddm-image]][daviddm-url]\n\u003e Extracts only the dist files from packages\n\n## Installation\n\n```sh\n$ npm install distiller --global\n```\n\n## CLI Usage\n\n```sh\n$ distiller -h\n\n  Usage\n\n    $ distiller [options] \u003cpackage\u003e\n\n  Options\n\n    -l, --list          lists locally defined custom packages\n    -o, --output-dir    destination for output\n    -t, --temp-dir      destination for temporary build files\n    -k, --keep-temp     do not remove the temporary directory\n    -h, --help          shows usage help\n\n```\n\n## CLI Environment Variables\n\n-  Use `DISTILLER_DIST` to override the default output location `$HOME/.distiller/dist`\n-  Use `DISTILLER_TEMP` to override the default temporary build location `$HOME/.distiller/temp`\n    - the temp directory is removed after every execution \n\n## CLI Example\n\n```sh\n$ distiller react\nDistilled into: ~/.distiller/dist/react\n\n$ tree ~/.distiller/dist/react\n~/.distiller/dist/react/\n├── react.js\n├── react-with-addons.js\n├── react-with-addons.min.js\n└── react.min.js\n\n```\n\n## Module Usage\n\n```js\nvar distill = require('distiller').distill;\n\ndistill({\n  package: 'react', // can be any NPM discoverable package\n  outputDir: '/Users/hotdog/Desktop/react-dist/', // defaults to $HOME/.distiller/dist/${package}\n  tempDir: '/Users/hotdog/.temp-folder-for-distiller' // defaults to $HOME/.distiller/temp\n}, error =\u003e {\n  if (error) {\n    return console.log('error', error);\n  }\n  console.log('carry on');\n});\n\n```\n\n## API\n\n### distiller.distill(options, callback)\n\n- #### options\n  \n  *Required*\n  Type `object`\n\n- #### package\n  \n  *Required*\n  Type `string`\n\n  The official NPM package name.\n\n- #### outputDir\n  \n  Type: `string`\n  \n  Default: `$HOME/.distiller/dist/${package}`\n\n  The absolute path to place output files.\n\n- #### tempDir\n  \n  Type: `string`\n  \n  Default: `$HOME/.distiller/temp/distilled-${package}`\n\n  The absolute path to use for building the package.\n\n- #### keepTemp\n  \n  Type: `boolean`\n  \n  Default: `false`\n\n  Can prevent the `tempDir` from being removed after execution.\n\n## TODO\n\n- [x] Document API\n- [ ] Document custom package creation\n- [ ] More test coverage\n- [ ] Allow multiple packages on CLI\n- [ ] Consider other sources, e.g. bower\n\n## License\n\nISC © [Buster Collings](https://about.me/buster)\n\n\n[npm-image]: https://badge.fury.io/js/distiller.svg\n[npm-url]: https://npmjs.org/package/distiller\n[travis-image]: https://travis-ci.org/busterc/distiller.svg?branch=master\n[travis-url]: https://travis-ci.org/busterc/distiller\n[daviddm-image]: https://david-dm.org/busterc/distiller.svg?theme=shields.io\n[daviddm-url]: https://david-dm.org/busterc/distiller\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbusterc%2Fdistiller","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbusterc%2Fdistiller","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbusterc%2Fdistiller/lists"}