{"id":15705676,"url":"https://github.com/shigma/ns-require","last_synced_at":"2025-06-12T11:37:44.721Z","repository":{"id":65522385,"uuid":"483930030","full_name":"shigma/ns-require","owner":"shigma","description":"Require with Namespace","archived":false,"fork":false,"pushed_at":"2023-03-30T15:51:17.000Z","size":14,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-31T08:20:36.443Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/shigma.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-04-21T06:18:23.000Z","updated_at":"2023-11-28T16:56:05.000Z","dependencies_parsed_at":"2024-06-18T22:54:15.903Z","dependency_job_id":"0a3c3876-b231-49ee-8380-a989115d8f5f","html_url":"https://github.com/shigma/ns-require","commit_stats":{"total_commits":10,"total_committers":1,"mean_commits":10.0,"dds":0.0,"last_synced_commit":"cde8ece52504d852ee2c2d62f5f9d039ee95ea3b"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/shigma/ns-require","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shigma%2Fns-require","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shigma%2Fns-require/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shigma%2Fns-require/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shigma%2Fns-require/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shigma","download_url":"https://codeload.github.com/shigma/ns-require/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shigma%2Fns-require/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259456403,"owners_count":22860547,"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-10-03T20:18:51.768Z","updated_at":"2025-06-12T11:37:44.683Z","avatar_url":"https://github.com/shigma.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ns-require\n\n[![Codecov](https://img.shields.io/codecov/c/github/shigma/ns-require?style=flat-square)](https://codecov.io/gh/shigma/ns-require)\n[![downloads](https://img.shields.io/npm/dm/ns-require?style=flat-square)](https://www.npmjs.com/package/ns-require)\n[![npm](https://img.shields.io/npm/v/ns-require?style=flat-square)](https://www.npmjs.com/package/ns-require)\n[![GitHub](https://img.shields.io/github/license/shigma/ns-require?style=flat-square)](https://github.com/shigma/ns-require/blob/master/LICENSE)\n\nRequire with Namespace.\n\n## Basic Usage\n\n```ts\nimport ns from 'ns-require'\n\nconst scope = ns({\n  namespace: 'awesome',\n  prefix: 'plugin',\n})\n\nscope.require('foo')        // will resolve to `awesome-plugin-foo`\nscope.require('@foo/bar')   // will resolve to `@foo/awesome-plugin-bar`\n```\n\n## With Official Scope\n\n```ts\nimport ns from 'ns-require'\n\nconst scope = ns({\n  namespace: 'awesome',\n  prefix: 'plugin',\n  official: 'scope',\n})\n\nscope.require('foo')        // will resolve to `@scope/plugin-foo`\n                            // and then `awesome-plugin-foo`\nscope.require('@foo/bar')   // will resolve to `@foo/awesome-plugin-bar`\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshigma%2Fns-require","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshigma%2Fns-require","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshigma%2Fns-require/lists"}