{"id":13447660,"url":"https://github.com/TrySound/rollup-plugin-string","last_synced_at":"2025-03-22T01:31:10.090Z","repository":{"id":52027397,"uuid":"45397808","full_name":"TrySound/rollup-plugin-string","owner":"TrySound","description":"Converts text files to modules","archived":false,"fork":false,"pushed_at":"2022-12-02T23:41:00.000Z","size":123,"stargazers_count":83,"open_issues_count":10,"forks_count":13,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-06-11T17:38:24.548Z","etag":null,"topics":[],"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/TrySound.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":"2015-11-02T14:00:19.000Z","updated_at":"2024-05-16T17:24:26.000Z","dependencies_parsed_at":"2023-01-22T23:01:07.524Z","dependency_job_id":null,"html_url":"https://github.com/TrySound/rollup-plugin-string","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TrySound%2Frollup-plugin-string","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TrySound%2Frollup-plugin-string/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TrySound%2Frollup-plugin-string/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TrySound%2Frollup-plugin-string/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TrySound","download_url":"https://codeload.github.com/TrySound/rollup-plugin-string/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243822295,"owners_count":20353500,"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-07-31T05:01:23.737Z","updated_at":"2025-03-22T01:31:09.824Z","avatar_url":"https://github.com/TrySound.png","language":"JavaScript","funding_links":[],"categories":["JavaScript","Plugins","others"],"sub_categories":["Other File Imports"],"readme":"# rollup-plugin-string [![Build Status](https://travis-ci.org/TrySound/rollup-plugin-string.svg)](https://travis-ci.org/TrySound/rollup-plugin-string)\n\nConverts text files to modules:\n\n```js\nimport tpl from \"./tpl.html\";\nconsole.log(`Template for render: ${tpl}`);\n```\n\n## Installation\n\n```sh\nnpm i rollup-plugin-string -D\n```\n\n## Usage\n\n```js\nimport { rollup } from \"rollup\";\nimport { string } from \"rollup-plugin-string\";\n\nrollup({\n  entry: \"main.js\",\n  plugins: [\n    string({\n      // Required to be specified\n      include: \"**/*.html\",\n\n      // Undefined by default\n      exclude: [\"**/index.html\"]\n    })\n  ]\n});\n```\n\n# License\n\nMIT © [Bogdan Chadkin](mailto:trysound@yandex.ru)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FTrySound%2Frollup-plugin-string","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FTrySound%2Frollup-plugin-string","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FTrySound%2Frollup-plugin-string/lists"}