{"id":31041716,"url":"https://github.com/fetchte/globables","last_synced_at":"2026-02-14T11:35:57.939Z","repository":{"id":314654781,"uuid":"1056286716","full_name":"fetchTe/globables","owner":"fetchTe","description":"CLI/ENV constants for Node.js-like runtimes, supports: Node.js, Deno, Bun, QuickJS, and QuickJS-NG","archived":false,"fork":false,"pushed_at":"2025-09-26T23:40:23.000Z","size":58,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-09-27T01:24:07.315Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Makefile","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/fetchTe.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-13T19:10:30.000Z","updated_at":"2025-09-26T23:39:21.000Z","dependencies_parsed_at":"2025-09-13T22:11:25.823Z","dependency_job_id":"39a57cce-c349-4348-880c-822255e20a4c","html_url":"https://github.com/fetchTe/globables","commit_stats":null,"previous_names":["fetchte/globables"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/fetchTe/globables","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fetchTe%2Fglobables","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fetchTe%2Fglobables/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fetchTe%2Fglobables/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fetchTe%2Fglobables/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fetchTe","download_url":"https://codeload.github.com/fetchTe/globables/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fetchTe%2Fglobables/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29443452,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-14T10:51:12.367Z","status":"ssl_error","status_checked_at":"2026-02-14T10:50:52.088Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":"2025-09-14T10:40:25.103Z","updated_at":"2026-02-14T11:35:57.934Z","avatar_url":"https://github.com/fetchTe.png","language":"Makefile","readme":"\u003ch1\u003e\nGlobAbles\n\u003ca href=\"https://mibecode.com\"\u003e\n  \u003cimg align=\"right\" title=\"\u0026#8805;95% Human Code\" alt=\"\u0026#8805;95% Human Code\" src=\"https://mibecode.com/badge.svg\" /\u003e\n\u003c/a\u003e\n\u003cimg align=\"right\" alt=\"empty space\" src=\"https://mibecode.com/3px.svg\" /\u003e\n\u003cimg align=\"right\" alt=\"NPM Version\" src=\"https://img.shields.io/npm/v/globables?color=white\" /\u003e\n\u003cimg align=\"right\" alt=\"empty space\" src=\"https://mibecode.com/3px.svg\" /\u003e\n\u003cimg align=\"right\" alt=\"Node LTS\" src=\"https://img.shields.io/node/v-lts/globables?color=%23962eff\"\u003e\n\u003c/h1\u003e\n\n\nCLI/ENV constants for Node.js-like runtimes, supports: [Node.js](https://nodejs.org/), [Deno](https://deno.com/), [Bun](https://bun.sh/), [QuickJS](https://bellard.org/quickjs/), and [QuickJS-NG](https://quickjs-ng.github.io/quickjs/)\n\n```ts\nimport {\n  ARGV,\n  ENV,\n  GLOBAL_THIS,\n  // is* runtime helpers\n  IS_BUN,\n  IS_DENO,\n  IS_NODE,\n  IS_QUICKJS,\n  // is_* service helpers\n  IS_CLOUDFLARE_WORKER,\n  IS_VERCEL_EDGE,\n}  from 'globables';\n\nGLOBAL_THIS.console.log(`Shellin with ${ENV['SHELL']} and commandin ${ARGV.join(', ')}`);\n```\n\u003e ╸`ARGV` - [command-line arguments](https://nodejs.org/api/process.html#processargv) (includes an export alias of `ARGS`)\u003cbr/\u003e\n\u003e ╸`ENV` - [process environment](https://nodejs.org/api/process.html#processenv) \u003cbr/\u003e\n\u003e ━╸ **QuickJS**: only works with `qjs --std -m` not `qjs --std -c`\u003cbr /\u003e\n\u003e ╸`GLOBAL_THIS` - [`globalThis`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/globalThis) object; pollyfill'ed if missing, like prehistoric node \u003c12\u003cbr/\u003e\n\u003e ╸ All Runtimes/Globals Tested -\u003e [./src/index.test.ts](https://github.com/fetchTe/globables/blob/master/src/index.test.ts)\u003cbr/\u003e\n\n\n\n\u003cbr/\u003e\n\n\n#### ▎INSTALL\n\n```sh\n# pick your poison\nnpm install globables\nbun  add globables\npnpm add globables\nyarn add globables\n```\n\n\n\n## Development/Contributing\n\nContributions, pull requests, and suggestions are appreciated. The following runtimes must be installed for you to test any changes and/or add additional tests: [Node.js](https://nodejs.org/), [Bun](https://bun.sh), [Deno](https://deno.com), [QuickJS-NG](https://quickjs-ng.github.io/quickjs/) and [Make](https://www.gnu.org/software/make/manual/make.html)\n\n\n### ▎PULL REQUEST STEPS\n\n1. Clone repository\n2. Create and switch to a new branch for your work\n3. Make and commit changes\n4. Run `make release` to clean, setup, build, lint, and test\n5. If everything checks out, push branch to repository and submit pull request\n\n\n#### ▎MAKEFILE REFERENCE\n\n```\n# USAGE\n   make [flags...] \u003ctarget\u003e\n\n# TARGET\n  -------------------\n   run                   executes entry-point (./src/index.ts) via 'bun run'\n   release               clean, setup, build, lint, test, aok (everything but the kitchen sink)\n  -------------------\n   build                 builds the .{js,d.ts} (skips: lint, test, and .min.* build)\n   build_cjs             builds the .cjs export\n   build_esm             builds the .js (esm) export\n   build_declarations    builds typescript .d.{ts,mts,cts} declarations\n  -------------------\n   install               installs dependencies via bun\n   update                updates dependencies\n   update_dry            lists dependencies that would be updated via 'make update'\n  -------------------\n   lint                  lints via tsc \u0026 eslint\n   lint_eslint           lints via eslint\n   lint_eslint_fix       lints and auto-fixes via eslint --fix\n   lint_tsc              lints via tsc\n   lint_watch            lints via eslint \u0026 tsc with fs.watch to continuously lint on change\n  -------------------\n   test                  runs bun test(s)\n   test_watch            runs bun test(s) in watch mode\n   test_update           runs bun test --update-snapshots\n  -------------------\n   help                  displays (this) help screen\n\n# FLAGS\n  -------------------\n   BUN                   [? ] bun build flag(s) (e.g: make BUN=\"--banner='// bake until golden brown'\")\n  -------------------\n   CJS                   [?1] builds the cjs (CommonJS) target on 'make release'\n   EXE                   [?js|mjs] default esm build extension\n   TAR                   [?0] build target env (-1=bun, 0=node, 1=dom, 2=dom+iife, 3=dom+iife+userscript)\n   MIN                   [?1] builds minified (*.min.{mjs,cjs,js}) targets on 'make release'\n  -------------------\n   BAIL                  [?1] fail fast (bail) on the first test or lint error\n   ENV                   [?DEV|PROD|TEST] sets the 'ENV' \u0026 'IS_*' static build variables (else auto-set)\n   TEST                  [?0] sets the 'IS_TEST' static build variable (always 1 if test target)\n   WATCH                 [?0] sets the '--watch' flag for bun/tsc (e.g: WATCH=1 make test)\n  -------------------\n   DEBUG                 [?0] enables verbose logging and sets the 'IS_DEBUG' static build variable\n   QUIET                 [?0] disables pretty-printed/log target (INIT/DONE) info\n   NO_COLOR              [?0] disables color logging/ANSI codes\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffetchte%2Fglobables","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffetchte%2Fglobables","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffetchte%2Fglobables/lists"}