{"id":22011493,"url":"https://github.com/lasalefamine/runnable-exports","last_synced_at":"2026-04-28T21:05:50.059Z","repository":{"id":65491997,"uuid":"79852362","full_name":"LasaleFamine/runnable-exports","owner":"LasaleFamine","description":"Run your exports as command line arguments","archived":false,"fork":false,"pushed_at":"2018-09-13T18:51:45.000Z","size":256,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-28T19:47:10.057Z","etag":null,"topics":["exports","module","runnable","runnable-exports"],"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/LasaleFamine.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-01-23T21:56:20.000Z","updated_at":"2023-03-08T15:31:58.000Z","dependencies_parsed_at":"2023-01-25T19:25:14.007Z","dependency_job_id":null,"html_url":"https://github.com/LasaleFamine/runnable-exports","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LasaleFamine%2Frunnable-exports","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LasaleFamine%2Frunnable-exports/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LasaleFamine%2Frunnable-exports/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LasaleFamine%2Frunnable-exports/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LasaleFamine","download_url":"https://codeload.github.com/LasaleFamine/runnable-exports/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245072252,"owners_count":20556353,"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":["exports","module","runnable","runnable-exports"],"created_at":"2024-11-30T02:17:09.859Z","updated_at":"2026-04-28T21:05:50.007Z","avatar_url":"https://github.com/LasaleFamine.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# runnable-exports\n[![Build Status](https://travis-ci.com/emurphy-9/runnable-exports.svg?branch=master)](https://travis-ci.com/emurphy-9/runnable-exports) [![Coverage Status](https://coveralls.io/repos/github/emurphy-9/runnable-exports/badge.svg?branch=master)](https://coveralls.io/github/emurphy-9/runnable-exports?branch=master)\n\u003e Run your `exports` as command line arguments\n\nIf you want to easily create a command line tool from a file and a bunch of exported functions.\n\n## Install\n\n\t$ yarn add runnable-exports\n\n## Usage\n```javascript\n// your-file.js\nconst runnableExports = require('runnable-exports')\nmodule.exports.awesome = ...args =\u003e {\n\tconsole.log('Awesome', args)\n}\nrunnableExports()\n```\nAnd simply\n\n\t$ node your-file.js awesome and nice arguments\n\nOutput\n\n\tAwesome ['and', 'nice', 'arguments']\n\n### ***ObjectArgs***\n```javascript\n// your-file.js\nconst runnableExports = require('runnable-exports')\nmodule.exports.awesome = args =\u003e {\n\tconsole.log('Awesome', args)\n}\nrunnableExports()\n```\n\nUnder the hood [yargs](https://www.npmjs.com/package/yargs) is used, so you can pass easily also `objectArgs` like so\n\n\t$ node your-file.js awesome --nice\n\nOutput\n\n\tAwesome {nice: true}\n\n\u003e NOTE: the module accepts both types of args, the object args will be the first arg passed to the called function, all other args will follow from this\n\n## Test\n\n\u003e XO and AVA\n\n\t$ yarn test\n\n## Related\n\nThis is a fork of [make-runnable](https://github.com/super-cache-money/make-runnable)\n\n## License\n\nMIT © LasaleFamine\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flasalefamine%2Frunnable-exports","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flasalefamine%2Frunnable-exports","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flasalefamine%2Frunnable-exports/lists"}