{"id":13634811,"url":"https://github.com/oldj/node-font-list","last_synced_at":"2025-04-12T21:33:47.988Z","repository":{"id":45032716,"uuid":"81041981","full_name":"oldj/node-font-list","owner":"oldj","description":"Get the list of fonts installed in the system.","archived":false,"fork":false,"pushed_at":"2023-08-28T03:21:54.000Z","size":59,"stargazers_count":136,"open_issues_count":6,"forks_count":22,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-04T01:08:42.316Z","etag":null,"topics":["electron","font","nodejs"],"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/oldj.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":"2017-02-06T02:57:45.000Z","updated_at":"2025-03-10T07:12:36.000Z","dependencies_parsed_at":"2024-06-18T13:54:59.619Z","dependency_job_id":"dfa605a6-142c-4af6-87eb-c0994e990e3c","html_url":"https://github.com/oldj/node-font-list","commit_stats":{"total_commits":52,"total_committers":11,"mean_commits":"4.7272727272727275","dds":0.25,"last_synced_commit":"dfb34faa78343add4f83a39d7c7e8913ecb0a9c7"},"previous_names":[],"tags_count":20,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oldj%2Fnode-font-list","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oldj%2Fnode-font-list/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oldj%2Fnode-font-list/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oldj%2Fnode-font-list/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oldj","download_url":"https://codeload.github.com/oldj/node-font-list/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248635940,"owners_count":21137338,"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":["electron","font","nodejs"],"created_at":"2024-08-02T00:00:35.028Z","updated_at":"2025-04-12T21:33:47.967Z","avatar_url":"https://github.com/oldj.png","language":"JavaScript","readme":"# font-list\n\n`font-list` is a Node.js package for listing the fonts available on your system.\n\nCurrent version supports **MacOS**, **Windows**, and **Linux**.\n\n## Install\n\n```bash\nnpm install font-list\n```\n\n## Usage\n\n```js\nconst fontList = require('font-list')\n\nfontList.getFonts()\n  .then(fonts =\u003e {\n    console.log(fonts)\n  })\n  .catch(err =\u003e {\n    console.log(err)\n  })\n```\n\nor like this in TypeScript:\n\n```ts\nimport { getFonts } from 'font-list'\n\ngetFonts()\n  .then(fonts =\u003e {\n    console.log(fonts)\n  })\n  .catch(err =\u003e {\n    console.log(err)\n  })\n```\n\nThe return value `fonts` is an Array, looks like:\n\n```\n[ '\"Adobe Arabic\"',\n  '\"Adobe Caslon Pro\"',\n  '\"Adobe Devanagari\"',\n  '\"Adobe Fan Heiti Std\"',\n  '\"Adobe Fangsong Std\"',\n  'Arial',\n  ...\n  ]\n```\n\nIf the font name contains spaces, the name will be wrapped in double quotes, otherwise there will be no double quotes,\nfor example: `'\"Adobe Arabic\"'`, `'Arial'`.\n\nIf you don't want font names that contains spaces to be wrapped in double quotes, pass the options object\nwith `disableQuoting` set to true when calling the method `getFonts`:\n\n```js\nconst fontList = require('font-list')\n\nfontList.getFonts({ disableQuoting: true })\n  .then(fonts =\u003e {\n    console.log(fonts)\n  })\n  .catch(err =\u003e {\n    console.log(err)\n  })\n```\n","funding_links":[],"categories":["system (系统)"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foldj%2Fnode-font-list","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foldj%2Fnode-font-list","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foldj%2Fnode-font-list/lists"}