{"id":21270724,"url":"https://github.com/explodingcamera/staticgen-node","last_synced_at":"2025-03-15T12:12:25.990Z","repository":{"id":129697310,"uuid":"355185987","full_name":"explodingcamera/staticgen-node","owner":"explodingcamera","description":"tj's staticgen, conveniently packaged for NodeJS projects","archived":false,"fork":false,"pushed_at":"2021-04-09T17:07:01.000Z","size":21,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-22T02:32:08.866Z","etag":null,"topics":["site","static","static-site-generator","staticgen"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/explodingcamera.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2021-04-06T12:47:31.000Z","updated_at":"2021-04-09T17:07:04.000Z","dependencies_parsed_at":"2023-08-30T06:30:41.664Z","dependency_job_id":null,"html_url":"https://github.com/explodingcamera/staticgen-node","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/explodingcamera%2Fstaticgen-node","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/explodingcamera%2Fstaticgen-node/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/explodingcamera%2Fstaticgen-node/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/explodingcamera%2Fstaticgen-node/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/explodingcamera","download_url":"https://codeload.github.com/explodingcamera/staticgen-node/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243725634,"owners_count":20337670,"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":["site","static","static-site-generator","staticgen"],"created_at":"2024-11-21T08:18:26.464Z","updated_at":"2025-03-15T12:12:25.984Z","avatar_url":"https://github.com/explodingcamera.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# StaticGen-Node\n\nStaticGen-Node is a simple wrapper around [staticgen](https://github.com/tj/staticgen) which simplifies using this tool in CI-Scenarios.\n\n```bash\n# npm\nnpm install -S staticgen-node\n\n# yarn\nyarn add staticgen-node\n```\n\nCurrently, the latest binaries for linux, osx and windows for amd64 and arm64 are included in the npm package (I might change this in a later version to download the binarys on runtime).\n\nStaticGen-Node also includes a couple of small changes to staticgen to improve the tool for CI, like windows support and all config variables are now also configurable using flags.\n\n## Usage\n\n### CLI\nThis package adds a new binary called staticgen which can be used in package.json scripts and using e.g `yarn run staticgen`\n### API\nThis npm package also includes a JS API and typescript definitions. Currently, only synchronous functions are available, promise versions might be added later on.\n\nNOTE: the API can be a bit weird and is build around a specific usecase I have @ [snowstorm](https://github.com/explodingcamera/snowstorm).\n\n```ts\n// ES-Modules\nimport staticgen from \"staticgen-node\";\n// Common-JS\nconst staticgen = require(\"staticgen-node\");\n\nstaticgen.generate();\nstaticgen.serve();\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexplodingcamera%2Fstaticgen-node","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fexplodingcamera%2Fstaticgen-node","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexplodingcamera%2Fstaticgen-node/lists"}