{"id":23366720,"url":"https://github.com/d8corp/innet-plugins","last_synced_at":"2025-04-07T23:15:43.077Z","repository":{"id":57118744,"uuid":"327023104","full_name":"d8corp/innet-plugins","owner":"d8corp","description":"innet plugin to provide other plugins","archived":false,"fork":false,"pushed_at":"2021-06-17T20:11:56.000Z","size":59,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-21T09:03:58.026Z","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/d8corp.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-01-05T14:26:55.000Z","updated_at":"2021-06-17T20:11:59.000Z","dependencies_parsed_at":"2022-08-22T22:20:53.625Z","dependency_job_id":null,"html_url":"https://github.com/d8corp/innet-plugins","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d8corp%2Finnet-plugins","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d8corp%2Finnet-plugins/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d8corp%2Finnet-plugins/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d8corp%2Finnet-plugins/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/d8corp","download_url":"https://codeload.github.com/d8corp/innet-plugins/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247744328,"owners_count":20988783,"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-12-21T14:17:25.289Z","updated_at":"2025-04-07T23:15:43.030Z","avatar_url":"https://github.com/d8corp.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cimg src=\"https://raw.githubusercontent.com/d8corp/innet/main/logo.svg\" align=\"left\" width=\"90\" height=\"90\" alt=\"InnetJs logo by Mikhail Lysikov\"\u003e\n\n# \u0026nbsp; @innet/plugins\n\n\u0026nbsp;\n\n[![NPM](https://img.shields.io/npm/v/@innet/plugins.svg)](https://github.com/d8corp/innet-plugins/blob/master/CHANGELOG.md)\n[![minzipped size](https://img.shields.io/bundlephobia/minzip/@innet/plugins)](https://bundlephobia.com/result?p=@innet/plugins)\n[![downloads](https://img.shields.io/npm/dm/@innet/plugins.svg)](https://www.npmjs.com/package/@innet/plugins)\n[![license](https://img.shields.io/npm/l/@innet/plugins)](https://github.com/d8corp/innet-plugins/blob/master/LICENSE)\n\nThis plugin helps to provide other plugins into a peace of application.\n\n### Installation\nnpm\n```bash\nnpm i @innet/plugins\n```\nyarn\n```bash\nyarn add @innet/plugins\n```\n\nOr you can include the scripts into the `head`.\n```html\n\u003c!-- Dependencies (watchState, innet) --\u003e\n\u003cscript defer src=\"https://unpkg.com/watch-state/watch-state.min.js\"\u003e\u003c/script\u003e\n\u003cscript defer src=\"https://unpkg.com/innet/innet.min.js\"\u003e\u003c/script\u003e\n\n\u003c!-- Target (innetPlugins) --\u003e\n\u003cscript defer src=\"https://unpkg.com/@innet/plugins/innet-plugins.min.js\"\u003e\u003c/script\u003e\n```\n\n### Using\nProvide the plugin to `innet`\n```typescript jsx\nimport innet from 'innet'\nimport plugins from '@innet/plugins'\nimport app from './app'\n\ninnet(app, undefined, {plugins})\n```\n\nThen you can use `plugins` to include any plugin inside the content.\n```typescript jsx\nimport to from '@innet/to'\n\nexport default (\n  \u003c\u003e\n    \u003cplugins div={to('span')}\u003e\u003cdiv /\u003e\u003c/plugins\u003e\n    \u003cplugins div={to('p')}\u003e\u003cdiv /\u003e\u003c/plugins\u003e\n  \u003c/\u003e\n)\n```\nYou get this\n```html\n\u003cspan\u003e\u003c/span\u003e\u003cp\u003e\u003c/p\u003e\n```\n### Issues\nIf you find a bug or have a suggestion, please file an issue on [GitHub](https://github.com/d8corp/innet-plugins/issues).  \n[![issues](https://img.shields.io/github/issues-raw/d8corp/innet-plugins)](https://github.com/d8corp/innet-plugins/issues)\n\u003e ---\n[![stars](https://img.shields.io/github/stars/d8corp/innet-plugins?style=social)](https://github.com/d8corp/innet-plugins/stargazers)\n[![watchers](https://img.shields.io/github/watchers/d8corp/innet-plugins?style=social)](https://github.com/d8corp/innet-plugins/watchers)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fd8corp%2Finnet-plugins","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fd8corp%2Finnet-plugins","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fd8corp%2Finnet-plugins/lists"}