{"name":"anywhere","version":"1.7.0","description":"Run static file server anywhere","bin":{"anywhere":"bin/anywhere"},"keywords":["Static","file","server","Assets"],"author":{"name":"Jackson Tian"},"license":"MIT","dependencies":{"connect":"^3.6.6","connect-history-api-fallback":"^2.0.0","debug":"^4.3.4","http-proxy-middleware":"^3.0.5","mime-types":"^2.1.35","minimist":"^1.2.0","serve-index":"^1.9.1","serve-static":"^1.13.2"},"repository":{"type":"git","url":"git://github.com/JacksonTian/anywhere.git"},"bugs":{"url":"https://github.com/JacksonTian/anywhere/issues"},"homepage":"https://github.com/JacksonTian/anywhere","_id":"anywhere@1.7.0","gitHead":"4b2bb75fc0f548c3f242b86ca4c0bab1d66cc238","_nodeVersion":"24.9.0","_npmVersion":"11.6.0","dist":{"integrity":"sha512-qUgWsVlUsePNwYz+ccNFcbpopoP2iS72HG3pgJwLvmxWi9CUMr2HRRDXK9qd0iaK5Pwzh2/bCxyJnp87ZiuRyQ==","shasum":"448c6215d5879168302308093a1c7f217d9c290b","tarball":"http://registry-npm.ywwl.com/anywhere/download/anywhere-1.7.0.tgz","fileCount":5,"unpackedSize":11593,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDyI6NTZEwYsOAgpto1fSFbtwkTi4S3vmfE5fzyRWkIcQIgLEs4tt1mVoRCyyxZ3M7tbWEOorovF+CG7S4ZN4sOPuU="}],"size":5745,"noattachment":false,"key":"/anywhere/-/anywhere-1.7.0.tgz"},"_npmUser":{"name":"jacksontian","email":"shyvo1987@gmail.com"},"directories":{},"maintainers":[{"name":"jacksontian","email":"shyvo1987@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/anywhere_1.7.0_1763008656068_0.771731533563969"},"_hasShrinkwrap":false,"readme":"Anywhere 随启随用的静态文件服务器\n==============================\n\n![NPM Version](https://img.shields.io/npm/v/anywhere)\n![NPM Downloads](https://img.shields.io/npm/dm/anywhere)\n\nRunning static file server anywhere. 随时随地将你的当前目录变成一个静态文件服务器的根目录。\n\n## Installation\n\nInstall it as a command line tool via `npm -g`.\n\n```sh\nnpm install anywhere -g\n```\n\n## Execution\n\n```sh\n$ anywhere\n// or with port\n$ anywhere -p 8000\n// or start it but silent(don't open browser)\n$ anywhere -s\n// or with hostname\n$ anywhere -h localhost -p 8888\n// or with folder\n$ anywhere -d ~/git/anywhere\n// or enable html5 history\n$ anywhere -f /index.html\n```\n\n## Help\n\n```sh\n$ anywhere --help\nUsage:\n  anywhere --help // print help information\n  anywhere // 8000 as default port, current folder as root\n  anywhere 8888 // 8888 as port\n  anywhere -p 8989 // 8989 as port\n  anywhere -s // don't open browser\n  anywhere -h localhost // localhost as hostname\n  anywhere -d /home // /home as root\n  anywhere -f /index.html  // Enable html5 history,the index is /index.html\n  anywhere --proxy http://localhost:7000/api // Support shorthand URL, webpack.config.js or customize config file\n```\n\n#### Proxy argvs\n\n**Shorthand URL**\n\n```\nanywhere --proxy http://localhost:7000/api\n                 \\___________________/\\___/\n                              |         |\n                           target    context\n```\n\nMore about the [shorthand configuration](https://github.com/chimurai/http-proxy-middleware#shorthand).\n\n**Webpack config**\n\n```javascript\n// webpack.config.js\nmodule.exports = {\n  devServer: {\n    proxy: {\n      '/api': {\n        target: 'http://localhost:7000',\n        changeOrigin: true\n      }\n    }\n  }\n}\n```\n\n**Customize config**\n\n```javascript\n// proxy.config.js\nmodule.exports = {\n  '/api': {\n    target: 'http://localhost:7000',\n    changeOrigin: true\n  }\n}\n```\n\nMore proxy [http-proxy-middleware](https://github.com/chimurai/http-proxy-middleware#context-matching) help.\n\n## Visit\n\n```\nhttp://localhost:8000\n```\n\nAutomatically open default browser. 执行命令后，默认浏览器将为您自动打开主页。\n\n## License\n\nThe MIT license.\n","publish_time":1763008656254,"_cnpm_publish_time":1763008656254,"dist-tags":{"latest":"1.7.0"}}