{"id":15706063,"url":"https://github.com/czzonet/fss","last_synced_at":"2025-07-05T14:35:56.374Z","repository":{"id":49040139,"uuid":"324299667","full_name":"czzonet/fss","owner":"czzonet","description":"file static server || node 静态资源服务器","archived":false,"fork":false,"pushed_at":"2021-06-30T15:11:11.000Z","size":68,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-30T15:47:48.438Z","etag":null,"topics":["static-server-nodejs"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/file-static-server-start","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/czzonet.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}},"created_at":"2020-12-25T06:09:17.000Z","updated_at":"2021-06-30T15:12:21.000Z","dependencies_parsed_at":"2022-09-08T15:12:33.981Z","dependency_job_id":null,"html_url":"https://github.com/czzonet/fss","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/czzonet/fss","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/czzonet%2Ffss","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/czzonet%2Ffss/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/czzonet%2Ffss/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/czzonet%2Ffss/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/czzonet","download_url":"https://codeload.github.com/czzonet/fss/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/czzonet%2Ffss/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262198594,"owners_count":23273876,"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":["static-server-nodejs"],"created_at":"2024-10-03T20:21:21.735Z","updated_at":"2025-06-27T05:33:37.864Z","avatar_url":"https://github.com/czzonet.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# file-static-server-start\n\n\u003e 简易静态资源服务器，运行后在当前目录启动监听。\n\n## 功能\n\n- [x] 当前目录监听\n- [x] 全局安装后可以直接全局执行\n- [ ] 输出当前文件夹下文件链接\n\n## 演示\n\n![](./docs/run.png)\n\n## 安装\n\n```sh\nyarn global add file-static-server-start\n```\n\n## 使用\n\n```sh\nfss\n```\n\n即在当前目录启动监听，浏览器打开http://127.0.0.1:5544/[xxx]即可下载文件，其中xxx是当前文件夹下的文件名。\n\n## 构建流程\n\n### 配置\n\n对于一个普通的node项目，使其可执行需要如下配置：\n\n#### 添加执行头到index.js/ts\n\n```sh\n#!/usr/bin/env node\n```\n\n#### package的配置\n\n```json\n  \"bin\": {\n    \"fss\": \"dist/index.js\"\n  },\n```\n\n会安装以一个fss的命令\n\n### 打包\n\n```sh\ntsc\n```\n\n### 发布\n\n```sh\nnpm login\n```\n\n注：重名的包发布会报403错误\n\n### 升级\n\n修改后升级再发布：\n\n```sh\nnpm version patch\nnpm publish\n```\n\n### 全局安装\n\n```sh\nyarn global add my-xxx\n```\n\n### 使用\n\n运行bin字段对应的命令即可。\n\n## Reference\n\n1. [使用 NPM 发布和使用 CLI 工具](https://juejin.cn/post/6844904153030852621)\n2. [如何发布自己的NPM包（模块）？](https://juejin.cn/post/6844903673684836365)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fczzonet%2Ffss","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fczzonet%2Ffss","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fczzonet%2Ffss/lists"}