{"id":20789767,"url":"https://github.com/samualtnorman/babel-plugin-here","last_synced_at":"2026-02-21T13:01:14.970Z","repository":{"id":181242527,"uuid":"666457106","full_name":"samualtnorman/babel-plugin-here","owner":"samualtnorman","description":"Replace instances of HERE identifier with code position strings.","archived":false,"fork":false,"pushed_at":"2025-12-17T10:26:11.000Z","size":407,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-20T03:20:52.292Z","etag":null,"topics":["babel","babel-plugin","here"],"latest_commit_sha":null,"homepage":"","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/samualtnorman.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-07-14T15:06:27.000Z","updated_at":"2025-12-17T10:26:15.000Z","dependencies_parsed_at":"2023-07-14T16:38:10.049Z","dependency_job_id":"d617ec3a-1be7-4325-ad96-1f0eb66f62d0","html_url":"https://github.com/samualtnorman/babel-plugin-here","commit_stats":null,"previous_names":["samualtnorman/babel-plugin-here"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/samualtnorman/babel-plugin-here","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samualtnorman%2Fbabel-plugin-here","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samualtnorman%2Fbabel-plugin-here/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samualtnorman%2Fbabel-plugin-here/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samualtnorman%2Fbabel-plugin-here/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/samualtnorman","download_url":"https://codeload.github.com/samualtnorman/babel-plugin-here/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samualtnorman%2Fbabel-plugin-here/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29681468,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-21T12:30:22.644Z","status":"ssl_error","status_checked_at":"2026-02-21T12:29:55.402Z","response_time":107,"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":["babel","babel-plugin","here"],"created_at":"2024-11-17T15:29:07.453Z","updated_at":"2026-02-21T13:01:14.948Z","avatar_url":"https://github.com/samualtnorman.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Babel Plugin Here (`babel-plugin-here`)\n\u003e Replace instances of `HERE` identifier with code position strings.\n\n## Why?\nThis plugin is useful when you don't have sourcemaps and you're looking at errors in the console and having trouble\nknowing where they've come from. You can setup this plugin, and use `HERE` in error message like\n``throw new Error(`${HERE} Some useful message`)``.\n\n## Setup\n### Install\n```sh\nnpm install --save-dev babel-plugin-here\n```\n\n### Babel config\n\n`babel.config.json`\n\n```json\n{\n\t\"plugins\": [ \"babel-plugin-here\" ]\n}\n```\n\n### TSConfig (if using TypeScript)\n\n`tsconfig.json`\n```ts\n{\n\t\"compilerOptions\": {\n\t\t\"types\": [ \"babel-plugin-here/env\" ]\n\t}\n}\n```\n\n## Example\n### In\n`src/foo.js`\n\n```js\nconsole.log(HERE)\n```\n\n### Out\n\n`dist/foo.js`\n\n```js\nconsole.log(\"src/foo.js:1:13\")\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamualtnorman%2Fbabel-plugin-here","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamualtnorman%2Fbabel-plugin-here","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamualtnorman%2Fbabel-plugin-here/lists"}