{"_id":"ssss","_rev":"10-bfbe3dea0adf78718a5f065b756df6f4","name":"ssss","description":"Super Simple Static Server","dist-tags":{"latest":"0.1.2"},"versions":{"0.1.0":{"name":"ssss","version":"0.1.0","description":"Super Simple Static Server","repository":{"url":"https://github.com/lukeupup/ssss/"},"main":"./bin/ssss","keywords":["Static","file","server","Assets"],"author":{"name":"Luke Lu"},"license":"MIT","dependencies":{"mime":"~1.2.11","isbinaryfile":"~2.0.1"},"devDependencies":{"rewire":"^2.0.0","mocha":"^1.18.2","should":"^3.3.1","phantomjs":"^1.9.7-5"},"_id":"ssss@0.1.0","_shasum":"30700eb58d60aea4a0d92fb70dfa0f57ce89a01c","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"lukeupup","email":"lukeupup@gmail.com"},"maintainers":[{"name":"lukeupup","email":"lukeupup@gmail.com"}],"dist":{"shasum":"30700eb58d60aea4a0d92fb70dfa0f57ce89a01c","tarball":"https://registry.npmjs.org/ssss/-/ssss-0.1.0.tgz","integrity":"sha512-dRM/++3DTluXfnqAw3OEY6sq6d+/PEoTD11sSw4dui9Y+drtwklYLfwfwrfhhyPk08eR+GNpM3PrUJbKAnT5MQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHWV8UZH78G6lDLC4EUwA2MOTSChPtGQaG7Ln4C2LYLLAiBX3zTwUo8RaB9SYdgodiShYVbFaXvoDjuHyfhr5bR2VQ=="}]}},"0.1.2":{"name":"ssss","version":"0.1.2","description":"Super Simple Static Server","repository":{"type":"git","url":"https://github.com/lukeupup/ssss.git"},"bugs":{"url":"https://github.com/lukeupup/ssss/issues"},"homepage":"https://github.com/lukeupup/ssss","bin":{"ssss":"./bin/ssss"},"keywords":["Static","file","server","Assets"],"author":{"name":"Luke Lu"},"license":"MIT","dependencies":{"mime":"~1.2.11","isbinaryfile":"~2.0.1"},"devDependencies":{"rewire":"^2.0.0","mocha":"^1.18.2","should":"^3.3.1","phantomjs":"^1.9.7-5"},"_id":"ssss@0.1.2","_shasum":"450a6422d08ae1deb6455da51e91779b94325c25","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"lukeupup","email":"lukeupup@gmail.com"},"maintainers":[{"name":"lukeupup","email":"lukeupup@gmail.com"}],"dist":{"shasum":"450a6422d08ae1deb6455da51e91779b94325c25","tarball":"https://registry.npmjs.org/ssss/-/ssss-0.1.2.tgz","integrity":"sha512-yqL6dLiJXvWM6mfNBOAJ769oge3aAPaOxpFnyexax+gAF89O562CxZYHtqYLEegcjJgK5gqrevEXhx6fvNW+2Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDYjJc/AAoFao8q8Q+JPyCVDlP5WRWnuVZ3Aw9Aa9ze8gIgMBRxHDmF9uqQqAbvlQa0sJ3TR2rStuUaU+LEFOPT/K0="}]}}},"readme":"# SSSS\n\nSSSS is a static file server that make it easier to start a web service. It's very simple. And with\nits route feature, it could be very useful.\n\n## Installation\n\n    $ npm install -g ssss\n\n## Basic Usage\n\nEnter the folder where you put your webpages in. And just type `ssss` to start the server. Of course\nall the static assets under the folder can be accessed by your browser, too.\n\n    $ cd ~/hello\n    $ ssss \n    Server started at 127.0.0.1:8080\n\nOpen your browser and type `127.0.0.1:8080/` plus your file name, you will see your page!\n\nIf your file is `index.html` or `index.htm` and it's under the root directory where you run ssss,\nthe file name can be omitted.\n\nPress ctrl-c to stop the server.\n\n## Configuration\n\nYou can customize hostname and port by just add them after the `ssss` command. All of the following \nare acceptable (on condition that mydomain can be resolved to your machine):\n    \n    $ ssss 8081\n    $ ssss mydomain\n    $ ssss mydomain:8081\n\nBy Default, SSSS is using 127.0.0.1:8080 as hostname and port.\n\n### Route file\n\nUsing route file, you can specify the reponse file for a specific url pattern. That give you \nability to handle a virtual folder in the url, and to mock json response for AJAX call, etc.\n\nRoute file is a JSON file and it MUST have a .json extension name. All of the following are\nacceptable:\n\n    $ ssss route.json\n    $ ssss 8081 ../route.json\n    $ ssss ~/route.json mydomain:8081\n\nThe content of route file should be a JSON object, which uses the url pattern as key and file path\nas value.\n\n    {\n        \"/\" : \"default.html\",\n        \"/foo/\" : \"../foo.html\",\n        \"/bar.jpeg\" : \"img/bar.jpg\",\n        \"/getuserinfo?id=10\" : \"~/mockfiles/user10.json\"\n    }\n\nHINTS:\n\n- You must add '/' at the front of the key, which indicates it's a absolute path.\n\n- The last '/' in the key do take effect, which mean `\"/foo\"` and `\"/foo/\"` will be regard as two\ndifferent path.\n\n- The file path is relative to the folder that SSSS is run. However, you can also specify the files\nthat is out of the folder, while normally the server can only access the files that is under the\ncurrent working directory.\n\n- If query string (the part after '?') is not provided in the route file, requests contains any\nquery string will return the relevant file just as no query string in the request.\n\n- Currently we do NOT support regular expression as url pattern.","maintainers":[{"name":"lukeupup","email":"lukeupup@gmail.com"}],"time":{"modified":"2022-06-26T23:36:07.196Z","created":"2014-07-23T09:38:11.438Z","0.1.0":"2014-07-23T09:38:11.438Z","0.1.1":"2014-07-23T09:45:27.406Z","0.1.2":"2014-07-23T10:10:29.415Z"},"keywords":["Static","file","server","Assets"],"repository":{"type":"git","url":"https://github.com/lukeupup/ssss.git"},"author":{"name":"Luke Lu"},"license":"MIT","readmeFilename":"README.md","homepage":"https://github.com/lukeupup/ssss","bugs":{"url":"https://github.com/lukeupup/ssss/issues"}}