{"id":17242766,"url":"https://github.com/imcuttle/babel-plugin-tiny-import","last_synced_at":"2026-02-16T19:33:10.702Z","repository":{"id":26294925,"uuid":"107861156","full_name":"imcuttle/babel-plugin-tiny-import","owner":"imcuttle","description":"split import from wrap package","archived":false,"fork":false,"pushed_at":"2024-02-06T06:34:29.000Z","size":244,"stargazers_count":1,"open_issues_count":3,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-04T16:03:50.920Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/imcuttle.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":"2017-10-22T11:48:35.000Z","updated_at":"2023-03-30T05:52:22.000Z","dependencies_parsed_at":"2024-12-10T00:46:03.159Z","dependency_job_id":null,"html_url":"https://github.com/imcuttle/babel-plugin-tiny-import","commit_stats":{"total_commits":32,"total_committers":3,"mean_commits":"10.666666666666666","dds":0.5,"last_synced_commit":"500e5a64a0c769980d655ad66fb39ce5b770b443"},"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/imcuttle/babel-plugin-tiny-import","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imcuttle%2Fbabel-plugin-tiny-import","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imcuttle%2Fbabel-plugin-tiny-import/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imcuttle%2Fbabel-plugin-tiny-import/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imcuttle%2Fbabel-plugin-tiny-import/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/imcuttle","download_url":"https://codeload.github.com/imcuttle/babel-plugin-tiny-import/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imcuttle%2Fbabel-plugin-tiny-import/sbom","scorecard":{"id":485220,"data":{"date":"2025-08-11","repo":{"name":"github.com/imcuttle/babel-plugin-tiny-import","commit":"500e5a64a0c769980d655ad66fb39ce5b770b443"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.4,"checks":[{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: License:0","Info: FSF or OSI recognized license: MIT License: License:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":5,"reason":"5 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-19T17:35:18.858Z","repository_id":26294925,"created_at":"2025-08-19T17:35:18.859Z","updated_at":"2025-08-19T17:35:18.859Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273997156,"owners_count":25204479,"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","status":"online","status_checked_at":"2025-09-07T02:00:09.463Z","response_time":67,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":"2024-10-15T06:14:01.097Z","updated_at":"2026-02-16T19:33:10.669Z","avatar_url":"https://github.com/imcuttle.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# babel-plugin-tiny-import\n\n## Feature\n\n- wrap.js\n```javascript\nexport {default as Tool, toolFunction as outerToolFunction} from 'lib/tool';\nexport * from 'lib/utils';\nexport {resolve as rlv} from 'lib/path';\n\nexports.join = require('lib/path/join');\nmodule.exports.join = require('lib/path/extname');\nmodule.exports.extname = require('lib/path-2/extname');\n\nexport {default as default} from 'index/join';\n```\n\nInput:  \n```javascript\nimport {rlv, join as Join} from 'wrap'\nconst {outerToolFunction: $outerToolFunction} = require('wrap')\n```\n\nOutput:  \n```javascript\nimport { resolve as rlv } from \"lib/path\";\nimport Join from \"lib/path/extname\";\nconst $outerToolFunction = require(\"lib/tool\").toolFunction;\n```\n\n## Options\n\n```text\n{\n    test: /^wrap$/, // RegExp | Function | String\n    moduleMapper: {} // {} | string | (imported, moduleName) =\u003e moduleName | {moduleName: string, ref: string},\n    easyModuleMapper: {\n        // `true` means that opt.moduleMapper will be regarded as filename\n        enable: true,\n        // watch the opt.moduleMapper file's change.\n        watch: true,\n        // the basename of opt.moduleMapper file's *Relative Module*.\n        basename: false, // true | false | string\n        resolvePackageAsAbsolute, // boolean | https://www.npmjs.com/package/resolve options, false by default\n    },\n}\n```\n\n## Note!!!\n\nthe syntax of `require` is not supported yet, which are as follow.\n\n- wrap.js  \n```javascript\nexports.supported = require('lib/total/support');\n// MemberExpression\nexports.notSupported = require('lib/total').notSupported;\n```\n\n- Input  \n```javascript\n// MemberExpression\nconst notSupported = require('wrap').supported;\nconst {notSupported: alsoNotSupported} = require('wrap');\n\nlet {supported} = require('@befe/wrap');\n```\n\n- Output  \n```javascript\nconst notSupported = require('wrap').supported;\nconst {notSupported: alsoNotSupported} = require('wrap');\n\nlet supported = require('lib/total/support');\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimcuttle%2Fbabel-plugin-tiny-import","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fimcuttle%2Fbabel-plugin-tiny-import","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimcuttle%2Fbabel-plugin-tiny-import/lists"}