{"id":16189461,"url":"https://github.com/shuhei/babel-plugin-type-assertion","last_synced_at":"2026-01-17T22:16:05.805Z","repository":{"id":30908047,"uuid":"34465864","full_name":"shuhei/babel-plugin-type-assertion","owner":"shuhei","description":"An experimental babel transformer plugin for rtts_assert","archived":false,"fork":false,"pushed_at":"2015-09-01T15:30:24.000Z","size":223,"stargazers_count":0,"open_issues_count":4,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-08T07:37:38.962Z","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/shuhei.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-04-23T15:48:57.000Z","updated_at":"2015-05-08T18:50:59.000Z","dependencies_parsed_at":"2022-09-17T01:03:45.747Z","dependency_job_id":null,"html_url":"https://github.com/shuhei/babel-plugin-type-assertion","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shuhei%2Fbabel-plugin-type-assertion","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shuhei%2Fbabel-plugin-type-assertion/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shuhei%2Fbabel-plugin-type-assertion/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shuhei%2Fbabel-plugin-type-assertion/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shuhei","download_url":"https://codeload.github.com/shuhei/babel-plugin-type-assertion/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246811235,"owners_count":20837745,"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-10T07:35:33.600Z","updated_at":"2026-01-17T22:16:05.792Z","avatar_url":"https://github.com/shuhei.png","language":"JavaScript","readme":"# babel-plugin-type-assertion\n\nAn babel transformer plugin for [rtts_assert](https://www.npmjs.com/package/rtts_assert), a run-time type assertion library for JavaScript.\n\n- Inject runtime type assertions based on flow types.\n- Can be turned off on production build. (Just exclude from babel's `plugins` option.)\n\n## Installation\n\n```\nnpm install -S rtts_assert babel-core babel-plugin-type-assertion\n```\n\n## Usage\n\nYou need to transpile also rtts_assert's ES6 code.\n\nRequire hook:\n\n```\nrequire('babel-core/register')({\n  ignore: /node_modules\\/(?!rtts_assert)/,\n  plugins: ['type-assertion']\n});\n\nrequire('your-module');\n```\n\nWebpack:\n\n[Working example config file](https://github.com/shuhei/accbook/blob/master/webpack.config.js)\n","funding_links":[],"categories":["Awesome Angular [![Awesome TipeIO](https://img.shields.io/badge/Awesome%20Angular-@TipeIO-6C6AE7.svg)](https://github.com/gdi2290/awesome-angular) [![Awesome devarchy.com](https://img.shields.io/badge/Awesome%20Angular-@devarchy.com-86BDC1.svg)](https://github.com/brillout/awesome-angular-components)"],"sub_categories":["Angular \u003ca id=\"angular\"\u003e\u003c/a\u003e"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshuhei%2Fbabel-plugin-type-assertion","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshuhei%2Fbabel-plugin-type-assertion","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshuhei%2Fbabel-plugin-type-assertion/lists"}