{"id":19303392,"url":"https://github.com/jsheaven/template-for-libraries","last_synced_at":"2026-02-08T09:05:10.736Z","repository":{"id":137502773,"uuid":"598372605","full_name":"jsheaven/template-for-libraries","owner":"jsheaven","description":"A template project for TypeScript libraries. Automatically builds to CJS, ESM, IIFE, for browser and Node.js. Supports API and CLI use likewise. Comes with modern and permissive tsconfig, eslint, jest and prettier configurations.","archived":false,"fork":false,"pushed_at":"2024-06-17T22:47:37.000Z","size":70,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-09T08:40:16.625Z","etag":null,"topics":["library","template"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/jsheaven.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2023-02-07T00:59:53.000Z","updated_at":"2024-06-17T22:54:22.000Z","dependencies_parsed_at":"2024-11-09T23:26:34.857Z","dependency_job_id":"fcd2819f-8c8e-4ab5-b1d6-0228bcc20f47","html_url":"https://github.com/jsheaven/template-for-libraries","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/jsheaven/template-for-libraries","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsheaven%2Ftemplate-for-libraries","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsheaven%2Ftemplate-for-libraries/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsheaven%2Ftemplate-for-libraries/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsheaven%2Ftemplate-for-libraries/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jsheaven","download_url":"https://codeload.github.com/jsheaven/template-for-libraries/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsheaven%2Ftemplate-for-libraries/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29225721,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-08T06:05:31.539Z","status":"ssl_error","status_checked_at":"2026-02-08T05:58:33.853Z","response_time":57,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["library","template"],"created_at":"2024-11-09T23:26:15.144Z","updated_at":"2026-02-08T09:05:10.721Z","avatar_url":"https://github.com/jsheaven.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e@jsheaven/template-name\u003c/h1\u003e\n\n\u003e Explains what it does\n\n\u003ch2 align=\"center\"\u003eUser Stories\u003c/h2\u003e\n\n1. As a developer, I want to use TemplateName for X\n\n2. As a developer, I don't want to do Y\n\n\u003ch2 align=\"center\"\u003eFeatures\u003c/h2\u003e\n\n- ✅ Does X and Y\n- ✅ Available as a simple API and simple to use CLI\n- ✅ Just `136 byte` nano sized (ESM, gizpped)\n- ✅ Tree-shakable and side-effect free\n- ✅ Runs on Windows, Mac, Linux, CI tested\n- ✅ First class TypeScript support\n- ✅ 100% Unit Test coverage\n\n\u003ch2 align=\"center\"\u003eExample usage (CLI)\u003c/h2\u003e\n\n`npx @jsheaven/template-name templateName --foo X`\n\n\u003e You need at least version 18 of [Node.js](https://www.nodejs.org) installed.\n\n\u003ch2 align=\"center\"\u003eExample usage (API, as a library)\u003c/h2\u003e\n\n\u003ch3 align=\"center\"\u003eSetup\u003c/h3\u003e\n\n- yarn: `yarn add @jsheaven/template-name`\n- npm: `npm install @jsheaven/template-name`\n\n\u003ch3 align=\"center\"\u003eESM\u003c/h3\u003e\n\n```ts\nimport { templateName } from '@jsheaven/template-name'\n\nconst result = await templateName({\n  foo: 'X',\n})\n```\n\n\u003ch3 align=\"center\"\u003eCommonJS\u003c/h3\u003e\n\n```ts\nconst { templateName } = require('@jsheaven/template-name')\n\n// same API like ESM variant\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsheaven%2Ftemplate-for-libraries","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjsheaven%2Ftemplate-for-libraries","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsheaven%2Ftemplate-for-libraries/lists"}