{"id":19293644,"url":"https://github.com/mann-conomy/tf-sku","last_synced_at":"2026-01-24T10:35:43.322Z","repository":{"id":255057368,"uuid":"763684773","full_name":"Mann-Conomy/tf-sku","owner":"Mann-Conomy","description":"A static Node.js class for formatting Team Fortress 2 items into strings or JSON objects.","archived":false,"fork":false,"pushed_at":"2024-10-30T19:55:42.000Z","size":88,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-13T13:40:09.126Z","etag":null,"topics":["formatter","javascript","json","mann-conomy","nodejs","sku","tf2","typescript"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@mann-conomy/tf-sku","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/Mann-Conomy.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,"zenodo":null}},"created_at":"2024-02-26T18:30:23.000Z","updated_at":"2025-03-27T22:24:20.000Z","dependencies_parsed_at":"2024-11-09T22:35:47.508Z","dependency_job_id":null,"html_url":"https://github.com/Mann-Conomy/tf-sku","commit_stats":null,"previous_names":["mann-conomy/tf-sku"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/Mann-Conomy/tf-sku","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mann-Conomy%2Ftf-sku","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mann-Conomy%2Ftf-sku/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mann-Conomy%2Ftf-sku/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mann-Conomy%2Ftf-sku/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Mann-Conomy","download_url":"https://codeload.github.com/Mann-Conomy/tf-sku/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mann-Conomy%2Ftf-sku/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28725374,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-24T10:24:43.181Z","status":"ssl_error","status_checked_at":"2026-01-24T10:24:36.112Z","response_time":89,"last_error":"SSL_read: 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":["formatter","javascript","json","mann-conomy","nodejs","sku","tf2","typescript"],"created_at":"2024-11-09T22:35:35.827Z","updated_at":"2026-01-24T10:35:43.307Z","avatar_url":"https://github.com/Mann-Conomy.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tf-sku\n\nA static Node.js class for formatting Team Fortress 2 items into strings or JSON objects.\n\n[![npm version](https://img.shields.io/npm/v/@mann-conomy/tf-sku?style=flat-square\u0026logo=npm)](https://npmjs.com/package/@mann-conomy/tf-sku)\n[![npm downloads](https://img.shields.io/npm/d18m/@mann-conomy/tf-sku?style=flat-square\u0026logo=npm)](https://npmjs.com/package/@mann-conomy/tf-sku)\n[![Node.js version](https://img.shields.io/node/v/@mann-conomy/tf-sku?style=flat-square\u0026logo=nodedotjs)](https://nodejs.org/en/about/releases/)\n[![GitHub actions](https://img.shields.io/github/actions/workflow/status/Mann-Conomy/tf-sku/test.yml?branch=main\u0026style=flat-square\u0026logo=github\u0026label=test)](https://github.com/Mann-Conomy/tf-sku/blob/main/.github/workflows/test.yml)\n[![GitHub license](https://img.shields.io/github/license/Mann-Conomy/tf-sku?style=flat-square\u0026logo=github)](https://github.com/Mann-Conomy/tf-sku/blob/main/LICENSE)\n\n## Installation\n\nUsing [npm](https://www.npmjs.com/package/@mann-conomy/tf-sku):\n\n```bash\n$ npm install @mann-conomy/tf-sku\n```\n\nUsing [yarn](https://yarnpkg.com/package/@mann-conomy/tf-sku):\n\n```bash\n$ yarn add @mann-conomy/tf-sku\n```\n\n## Testing\n\nUsing [npm](https://docs.npmjs.com/cli/v8/commands/npm-run-script):\n```bash\n$ npm test\n```\n\nUsing [yarn](https://classic.yarnpkg.com/lang/en/docs/cli/run/):\n```bash\n$ yarn test\n```\n\n## Examples\n\nFormatting Team Fortress 2 item objects into concise strings that captures their unique attributes.\n\n```js\nimport { SKU } from \"@mann-conomy/tf-sku\";\n\ntry {\n    // Object representation of a Professional Festivized Australium Medi Gun\n    const item = {\n        defindex: 211,\n        quality: 11,\n        australium: true,\n        killstreak: 3, \n        festive: true\n    }\n\n    // Convert the item object into a SKU string\n    const sku = SKU.stringify(item);\n\n    console.log(sku); // 211;11;australium;kt-3;festive\n} catch (error) {\n    console.error(\"Error creating SKU string\", error.message);\n}\n```\n\nConverting strings into structured objects that represent the attributes of Team Fortress 2 items.\n\n```js\nimport { SKU } from \"@mann-conomy/tf-sku\";\n\ntry {\n    // String representation of a Strange Purple Energy Villain's Veil\n    const sku = \"393;5;u10;strange\";\n\n    // Parse the SKU string into an item object\n    const item = SKU.parse(sku);\n\n    console.log(item);\n    /*\n    {\n        defindex: 393,\n        quality: 5,\n        effect: 10,\n        australium: false,\n        craftable: true,\n        tradable: true,\n        wear: null,\n        paintkit: null,\n        elevated: true,\n        killstreak: 0,\n        target: null,\n        festive: false,\n        craftnumber: null,\n        crateseries: null,\n        output: null,\n        outputQuality: null,\n        paint: null\n    }\n    */\n} catch (error) {\n    console.error(\"Error parsing SKU string\", error.message);\n}\n```\n\nSome more examples are available in the [examples](https://github.com/Mann-Conomy/tf-sku/tree/main/examples) and [test](https://github.com/Mann-Conomy/tf-sku/tree/main/test) directories.\n\n## Documentation\n\nSee the [Wiki pages](https://github.com/Mann-Conomy/tf-sku/wiki) for further documentation.\n\n## License\n\n[MIT](LICENSE)\n\nCopyright 2024, The Mann-Conomy Project\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmann-conomy%2Ftf-sku","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmann-conomy%2Ftf-sku","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmann-conomy%2Ftf-sku/lists"}