{"id":19142140,"url":"https://github.com/eldoy/smor","last_synced_at":"2026-01-08T13:44:03.435Z","repository":{"id":56443597,"uuid":"175661016","full_name":"eldoy/smor","owner":"eldoy","description":"Node static file web server with streaming support","archived":false,"fork":false,"pushed_at":"2024-08-01T01:18:25.000Z","size":31635,"stargazers_count":1,"open_issues_count":2,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-12T17:06:00.528Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eldoy.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}},"created_at":"2019-03-14T16:37:13.000Z","updated_at":"2024-08-01T01:18:28.000Z","dependencies_parsed_at":"2022-08-15T18:50:34.169Z","dependency_job_id":null,"html_url":"https://github.com/eldoy/smor","commit_stats":null,"previous_names":["eldoy/hangersteak"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eldoy%2Fsmor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eldoy%2Fsmor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eldoy%2Fsmor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eldoy%2Fsmor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eldoy","download_url":"https://codeload.github.com/eldoy/smor/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249685172,"owners_count":21310558,"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-11-09T07:26:05.725Z","updated_at":"2026-01-08T13:44:03.393Z","avatar_url":"https://github.com/eldoy.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Smør\n\nNode web static files server with built in compression support.\n\n### Install\n\n```\nnpm i smor\n```\n\n### Usage\n\nVanilla NodeJS server. Will return 404 if not found, or the file using streams and correct mime type. Supports automatic 304 last modified headers.\n\n```js\nvar http = require('http')\nvar smor = require('smor')\n\nvar server = http.createServer((req, res) =\u003e {\n  // Using default options\n  smor(req, res)\n\n  // With options, default values shown\n  smor(req, res, {\n    dir: '', // Start with '/' to use absolute path\n    maxAge: 3600,\n    indexFile: 'index.html',\n    compress: false\n  })\n})\n\nserver.listen(3000)\n```\n\nMIT licensed. Enjoy!\n\nCreated by [Eldøy Projects](https://eldoy.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feldoy%2Fsmor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feldoy%2Fsmor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feldoy%2Fsmor/lists"}