{"id":15105503,"url":"https://github.com/superfola/forge","last_synced_at":"2025-09-27T05:30:40.550Z","repository":{"id":57363706,"uuid":"263697768","full_name":"SuperFola/forge","owner":"SuperFola","description":"A set of functions to generate HTML easily","archived":true,"fork":false,"pushed_at":"2020-05-14T09:27:41.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-09-21T13:00:13.298Z","etag":null,"topics":["dom","html-generator","javascript","npm"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/small-forge","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/SuperFola.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":"2020-05-13T17:24:53.000Z","updated_at":"2023-01-28T09:25:05.000Z","dependencies_parsed_at":"2022-09-15T21:23:25.517Z","dependency_job_id":null,"html_url":"https://github.com/SuperFola/forge","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SuperFola%2Fforge","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SuperFola%2Fforge/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SuperFola%2Fforge/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SuperFola%2Fforge/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SuperFola","download_url":"https://codeload.github.com/SuperFola/forge/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219871881,"owners_count":16554465,"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":["dom","html-generator","javascript","npm"],"created_at":"2024-09-25T20:40:29.777Z","updated_at":"2025-09-27T05:30:35.283Z","avatar_url":"https://github.com/SuperFola.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# small-forge\r\n\r\n[![version](https://img.shields.io/npm/v/small-forge.svg?style=flat-square)](http://npm.im/small-forge)\r\n[![downloads](https://img.shields.io/npm/dm/small-forge.svg?style=flat-square)](http://npm-stat.com/charts.html?package=small-forge\u0026from=2020-05-01)\r\n\r\nA small npm package to generate HTML easily.\r\n\r\n## Installing\r\n\r\n```shell\r\nnpm i small-forge\r\n```\r\n\r\n## Design goals\r\n\r\n* the fewest/smallest dependencies possible (I am one of those people who hate having a lot of small libs to use another bigger lib)\r\n* simplicity\r\n* use and abuse of `...args`\r\n* documentation everywhere\r\n\r\n## Examples\r\n\r\n```js\r\nconst sf = require('small-forge');\r\nconst [div, h1, p, img] = sf.forgeSomeElements(\r\n    'div', { className: 'cool-div' },\r\n    'h1',  { textContent: 'Hello GitHub!' },\r\n    'p',   { className: 'big-paragraph', textContent: 'A small package to generate HTML easily' },\r\n    'img', { src: 'public/img/sf.png', alt: 'small-forge logo' }\r\n);\r\n\r\nsf.forgeStyle(div, {\r\n    opacity: 1.0,\r\n    transition: 'opacity 1s'\r\n});\r\n\r\nsf.forgeHierarchy(\r\n    div, [\r\n        h1, p, img\r\n    ]\r\n);\r\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuperfola%2Fforge","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsuperfola%2Fforge","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuperfola%2Fforge/lists"}