{"id":18609721,"url":"https://github.com/unlight/requiro","last_synced_at":"2025-10-30T22:03:42.665Z","repository":{"id":31359188,"uuid":"34922070","full_name":"unlight/requiro","owner":"unlight","description":"Advanced version of require for node.js","archived":false,"fork":false,"pushed_at":"2017-04-02T16:20:51.000Z","size":22,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-24T01:02:22.598Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/unlight.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}},"created_at":"2015-05-01T20:15:12.000Z","updated_at":"2016-02-24T13:19:06.000Z","dependencies_parsed_at":"2022-09-12T06:00:45.457Z","dependency_job_id":null,"html_url":"https://github.com/unlight/requiro","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/unlight%2Frequiro","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unlight%2Frequiro/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unlight%2Frequiro/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unlight%2Frequiro/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/unlight","download_url":"https://codeload.github.com/unlight/requiro/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239400596,"owners_count":19632049,"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":[],"created_at":"2024-11-07T03:07:03.861Z","updated_at":"2025-10-30T22:03:37.617Z","avatar_url":"https://github.com/unlight.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"requiro\n=======\nAdvanced version of require for node.js.\n\nINSTALL\n-------\n`npm install requiro` \n\nUSAGE\n-----\n```js\nvar require = require(\"requiro\");\n// Now we can use something like that:\nvar conf = require(\"\u003e/config.{%NODE_ENV%}.js\");\nvar car = require(\"~/app/models/car\");\n```\n\nSYNTAX\n------\nSymbols                  | Resolves to               | Example                              |\n----------------------   | -----------------         | ----------------------               |\n`\u003e` or `\u003e/`              | Current working directory |  `require(\"\u003e/app/library/index.js\")`  |\n`{%VAR}` or `{%VAR%}`    | Environment variable      |  `require(\"./config.{%NODE_ENV%}.js\")` |\n`~/`                     | Closest directory with package.json      |  `require(\"~/app/library\")` |\n`//`                     | Project root              |  `require(\"//app/models/car\")` |\n\n\nRELATED STUFF\n-------------\n* Better local require() paths for Node.js - https://gist.github.com/branneman/8048520\n* https://github.com/MattiSG/requirewith\n* https://github.com/jaubourg/wires\n\nTODO\n----\n1. Need put config somewhere\n2. Multiple environment variables\n\nCHANGELOG\n---------\n### May 1, 2015\n- first release  \n\n### Dec 13, 2015\n- added project root token `//`\n- added closest directory with package.json `/~`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funlight%2Frequiro","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Funlight%2Frequiro","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funlight%2Frequiro/lists"}