{"id":13757721,"url":"https://github.com/fluents/script-chain","last_synced_at":"2025-05-10T05:32:15.670Z","repository":{"id":85934818,"uuid":"90128102","full_name":"fluents/script-chain","owner":"fluents","description":"fluent script building","archived":false,"fork":false,"pushed_at":"2017-05-05T02:39:17.000Z","size":30,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-11-16T13:35:19.939Z","etag":null,"topics":["arguments","builder","chainable","cli","exec","execa","flags","fluent","options","script"],"latest_commit_sha":null,"homepage":"","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/fluents.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}},"created_at":"2017-05-03T08:49:02.000Z","updated_at":"2017-05-25T07:56:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"b9e0d064-45b8-4cc8-b4cc-8a5380874ae6","html_url":"https://github.com/fluents/script-chain","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluents%2Fscript-chain","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluents%2Fscript-chain/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluents%2Fscript-chain/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluents%2Fscript-chain/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fluents","download_url":"https://codeload.github.com/fluents/script-chain/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253371076,"owners_count":21897998,"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":["arguments","builder","chainable","cli","exec","execa","flags","fluent","options","script"],"created_at":"2024-08-03T12:00:46.743Z","updated_at":"2025-05-10T05:32:15.294Z","avatar_url":"https://github.com/fluents.png","language":"JavaScript","readme":"# 📜⛓ script-chain\n\n[![NPM version][script-chain-npm-image]][script-chain-npm-url]\n[![MIT License][license-image]][license-url]\n[![fliphub][gitter-badge]][gitter-url]\n[![fluents][fluents-image]][fluents-url]\n[![Build Status][travis-image]][travis-url]\n\n\u003c!--\n[![Dependencies][david-deps-img]][david-deps-url]\n--\u003e\n\n[travis-image]: https://travis-ci.org/fluents/script-chain.svg?branch=master\n[travis-url]: https://travis-ci.org/fluents/script-chain\n\n[david-deps-img]: https://david-dm.org/fluents/script-chain.svg\n[david-deps-url]: https://david-dm.org/fluents/script-chain\n\n[fluents-image]: https://img.shields.io/badge/⛓-fluent-9659F7.svg\n[fluents-url]: https://www.npmjs.com/package/flipchain\n\n[script-chain-npm-image]: https://img.shields.io/npm/v/script-chain.svg\n[script-chain-npm-url]: https://npmjs.org/package/script-chain\n[license-image]: http://img.shields.io/badge/license-MIT-blue.svg?style=flat\n[license-url]: https://spdx.org/licenses/MIT\n[gitter-badge]: https://img.shields.io/gitter/room/fliphub/pink.svg\n[gitter-url]: https://gitter.im/fliphub/Lobby\n[flipfam-image]: https://img.shields.io/badge/%F0%9F%8F%97%20%F0%9F%92%A0-flipfam-9659F7.svg\n[flipfam-url]: https://www.npmjs.com/package/flipfam\n\n\u003e fluent script building\n\n\u003e build scripts to run that are aware of the context; defining NODE_ENV in the subprocess env, after the npm script, at the beginning of a node or lerna script, whether values should be stringified.\n\n\n## [📖 documentation](./docs)\n## [🔬 tests](./tests)\n\n## 📦 usage\n```bash\nyarn add script-chain\nnpm i script-chain --save\n```\n\n```js\nconst {ScriptFlip} = require('script-chain')\n```\n\n## 📘 examples\n\n### easy\n\n```js\nconst scripts = new ScriptFlip()\nscripts\n  .add()\n  .npm('diggy')\n  .env('magic')\n  .flag('env.zoolala', 'aoao')\n  .arg('-e')\n```\n\n### monorepo\n\nmakes tackling monorepo execution scripts a breeze\n\n```js\nconst script = new ScriptFlip()\n  .add()\n  .env('prod')\n  .lerna()\n  .prefix('inferno')\n  .scope('app1,app2,inferno')\n  .log('info')\n  .concurrency(1)\n  .group(2)\n  .raw('node')\n  .flag('row', '0')\n  .bin('tsc')\n\nscript.includes('--scope=+(inferno-app1|inferno-app2|inferno)')\n```\n\n\n### running\n\nwill run commands in a subprocess\n\n```js\nconst scripts = new ScriptFlip()\nscripts\n  .add()\n  .npm('diggy')\n  .env('magic')\n  .flag('env.zoolala', 'aoao')\n  .arg('-e')\n\nconst results = await scripts.run()\n```\n","funding_links":[],"categories":["My Fluent Packages"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffluents%2Fscript-chain","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffluents%2Fscript-chain","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffluents%2Fscript-chain/lists"}