{"id":28447699,"url":"https://github.com/nervjs/taro-plugin-platform-xhs","last_synced_at":"2025-06-30T13:32:28.919Z","repository":{"id":37402293,"uuid":"446260176","full_name":"NervJS/taro-plugin-platform-xhs","owner":"NervJS","description":"小红书小程序平台插件","archived":false,"fork":false,"pushed_at":"2024-12-02T02:47:10.000Z","size":423,"stargazers_count":16,"open_issues_count":4,"forks_count":10,"subscribers_count":18,"default_branch":"master","last_synced_at":"2025-06-04T12:47:58.688Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/NervJS.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-01-10T02:46:49.000Z","updated_at":"2025-05-23T07:48:46.000Z","dependencies_parsed_at":"2024-06-03T09:01:54.781Z","dependency_job_id":"7235b1f6-7b5b-47b7-ac40-06286cf6c1e4","html_url":"https://github.com/NervJS/taro-plugin-platform-xhs","commit_stats":{"total_commits":24,"total_committers":4,"mean_commits":6.0,"dds":0.5833333333333333,"last_synced_commit":"2e40195081dd759a33e6b6023c7e04d05e8206f2"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/NervJS/taro-plugin-platform-xhs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NervJS%2Ftaro-plugin-platform-xhs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NervJS%2Ftaro-plugin-platform-xhs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NervJS%2Ftaro-plugin-platform-xhs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NervJS%2Ftaro-plugin-platform-xhs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NervJS","download_url":"https://codeload.github.com/NervJS/taro-plugin-platform-xhs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NervJS%2Ftaro-plugin-platform-xhs/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262783324,"owners_count":23363516,"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":"2025-06-06T12:06:29.022Z","updated_at":"2025-06-30T13:32:28.843Z","avatar_url":"https://github.com/NervJS.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `@tarojs/plugin-platform-xhs`\n\nTaro 插件。用于支持编译为小红书小程序。\n\n## 使用\n\n#### 1. 配置插件\n\n```js\n// Taro 项目配置\nmodule.exports = {\n  // ...\n  plugins: [\n    '@tarojs/plugin-platform-xhs'\n  ]\n}\n```\n\n```js\n// Taro 项目配置\nmodule.exports = {\n  // ...\n  plugins: [\n    ['@tarojs/plugin-platform-xhs', { template: 'recursive' }]\n  ]\n}\n```\n\n#### 2. 编译为小红书小程序\n\n```shell\ntaro build --type xhs\ntaro build --type xhs --watch\n```\n\n#### 其它\n\n##### 平台判断\n\n```js\nif (process.env.TARO_ENV === 'xhs') {\n  // ...\n}\n```\n\n## License\n\nMIT License\n\nCopyright (c) O2Team\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnervjs%2Ftaro-plugin-platform-xhs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnervjs%2Ftaro-plugin-platform-xhs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnervjs%2Ftaro-plugin-platform-xhs/lists"}