{"_id":"type-to-string","_rev":"2-5ddaf213788e515bfaf6d399c0e0b0f2","name":"type-to-string","dist-tags":{"latest":"2.0.0"},"versions":{"1.0.0":{"name":"type-to-string","version":"1.0.0","description":"Get a string representation of a TypeScript type.","keywords":["TypeScript","type","toString"],"homepage":"https://github.com/RebeccaStevens/type-to-string#readme","bugs":{"url":"https://github.com/RebeccaStevens/type-to-string/issues"},"repository":{"type":"git","url":"git+https://github.com/RebeccaStevens/type-to-string.git"},"license":"BSD-3-Clause","author":{"name":"Rebecca Stevens","email":"rebecca.stevens@outlook.co.nz"},"type":"module","exports":{"types":{"import":"./dist/index.d.mts","require":"./dist/index.d.cts"},"import":"./dist/index.mjs","require":"./dist/index.cjs"},"scripts":{"build":"pnpm run build:node","build:node":"rimraf dist && rollup -c rollup.config.ts --configPlugin rollup-plugin-ts","cz":"git-cz","lint":"pnpm run lint:js && pnpm run lint:md && pnpm run lint:prettier && pnpm run lint:knip && pnpm run lint:spelling && pnpm run lint:packages","lint:js":"eslint .","lint:js-fix":"eslint . --fix","lint:knip":"pnpm run lint:knip:development && pnpm run lint:knip:production","lint:knip:development":"knip --exclude exports,nsExports,types,nsTypes","lint:knip:production":"knip --production --strict --exclude exports,nsExports,types,nsTypes","lint:md":"markdownlint \"**/*.md\" --config=.markdownlint.json --ignore-path=.markdownlintignore","lint:packages":"pnpm dedupe --check","lint:packages-fix":"pnpm dedupe","lint:prettier":"prettier \"**/*\" --ignore-unknown --list-different","lint:prettier-fix":"prettier \"**/*\" --ignore-unknown --write","lint:spelling":"cspell \"**\" \".github/**/*\"","prepare":"husky","release":"semantic-release","test":"pnpm run test:js","test:js":"vitest --coverage --run","test:js:watch":"vitest","type-check":"tsc --noEmit -p tsconfig.build.json"},"devDependencies":{"@commitlint/cli":"19.2.1","@commitlint/config-conventional":"19.1.0","@cspell/dict-cryptocurrencies":"5.0.0","@rebeccastevens/eslint-config":"2.0.11","@rollup/plugin-replace":"5.0.5","@semantic-release/changelog":"6.0.3","@semantic-release/commit-analyzer":"12.0.0","@semantic-release/git":"10.0.1","@semantic-release/github":"10.0.2","@semantic-release/npm":"12.0.0","@semantic-release/release-notes-generator":"13.0.0","@types/node":"20.12.2","@types/rollup-plugin-auto-external":"2.0.5","@typescript-eslint/eslint-plugin":"7.4.0","@typescript-eslint/parser":"7.4.0","@vitest/coverage-v8":"1.4.0","commitizen":"4.3.0","cspell":"8.6.1","cz-conventional-changelog":"3.3.0","deassert":"1.0.2","eslint":"8.57.0","eslint-config-prettier":"9.1.0","eslint-import-resolver-typescript":"3.6.1","eslint-plugin-eslint-comments":"3.2.0","eslint-plugin-functional":"6.4.0","eslint-plugin-import":"2.29.1","eslint-plugin-jsdoc":"48.2.2","eslint-plugin-markdown":"3.0.1","eslint-plugin-n":"16.6.2","eslint-plugin-optimize-regex":"1.2.1","eslint-plugin-prettier":"5.1.3","eslint-plugin-promise":"6.1.1","eslint-plugin-sonarjs":"0.25.0","eslint-plugin-unicorn":"51.0.1","eslint-plugin-vitest":"0.4.1","husky":"9.0.11","knip":"5.7.0","lint-staged":"15.2.2","markdownlint":"0.34.0","markdownlint-cli":"0.39.0","prettier":"3.2.5","prettier-plugin-packagejson":"2.4.14","rimraf":"5.0.5","rollup":"4.13.2","rollup-plugin-auto-external":"2.0.0","rollup-plugin-ts":"3.4.5","semantic-release":"23.0.6","ts-api-utils":"1.3.0","tsc-files":"1.1.4","typescript":"5.4.3","vite-tsconfig-paths":"4.3.2","vitest":"1.4.0"},"peerDependencies":{"ts-api-utils":">=1.3.0","typescript":">=5.0.0"},"packageManager":"pnpm@8.15.5","_id":"type-to-string@1.0.0","gitHead":"a9ebaa2517c52a1b97d6930bc8ab5e05d68fe57d","_nodeVersion":"21.7.1","_npmVersion":"10.5.0","dist":{"integrity":"sha512-Ufg4MJRP9rt2tPmXgdoyktv//uRl31lJ7buaSJx5o764hJp5HD7T5gm7nRhSZ3gRRqVwIy/u1A78SW79rqeErQ==","shasum":"507691e69b7207f10dec9966522f4ddde312ab1a","tarball":"https://registry.npmjs.org/type-to-string/-/type-to-string-1.0.0.tgz","fileCount":7,"unpackedSize":34446,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDt4gwF75J7LtdGOJpLHi/F1Zm3b0+2HXFjGRwSSyBtngIgBx8DN/OyeKC6iDY6R+WKmNq50JNP0qTqwgPskHuWRk4="}]},"_npmUser":{"name":"rebeccastevens","email":"rebecca.stevens@outlook.co.nz"},"directories":{},"maintainers":[{"name":"rebeccastevens","email":"rebecca.stevens@outlook.co.nz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/type-to-string_1.0.0_1712029174629_0.33871491863571146"},"_hasShrinkwrap":false},"1.0.1":{"name":"type-to-string","version":"1.0.1","description":"Get a string representation of a TypeScript type.","keywords":["TypeScript","type","toString"],"homepage":"https://github.com/RebeccaStevens/type-to-string#readme","bugs":{"url":"https://github.com/RebeccaStevens/type-to-string/issues"},"repository":{"type":"git","url":"git+https://github.com/RebeccaStevens/type-to-string.git"},"license":"BSD-3-Clause","author":{"name":"Rebecca Stevens","email":"rebecca.stevens@outlook.co.nz"},"type":"module","exports":{"types":{"import":"./dist/index.d.mts","require":"./dist/index.d.cts"},"import":"./dist/index.mjs","require":"./dist/index.cjs"},"scripts":{"build":"pnpm run build:node","build:node":"rimraf dist && rollup -c rollup.config.ts --configPlugin rollup-plugin-ts","cz":"git-cz","lint":"pnpm run lint:js && pnpm run lint:md && pnpm run lint:prettier && pnpm run lint:knip && pnpm run lint:spelling && pnpm run lint:packages","lint:js":"eslint .","lint:js-fix":"eslint . --fix","lint:knip":"pnpm run lint:knip:development && pnpm run lint:knip:production","lint:knip:development":"knip --exclude exports,nsExports,types,nsTypes","lint:knip:production":"knip --production --strict --exclude exports,nsExports,types,nsTypes","lint:md":"markdownlint \"**/*.md\" --config=.markdownlint.json --ignore-path=.markdownlintignore","lint:packages":"pnpm dedupe --check","lint:packages-fix":"pnpm dedupe","lint:prettier":"prettier \"**/*\" --ignore-unknown --list-different","lint:prettier-fix":"prettier \"**/*\" --ignore-unknown --write","lint:spelling":"cspell \"**\" \".github/**/*\"","prepare":"husky","release":"semantic-release","test":"pnpm run test:js","test:js":"vitest --coverage --run","test:js:watch":"vitest","type-check":"tsc --noEmit -p tsconfig.build.json"},"devDependencies":{"@commitlint/cli":"19.2.1","@commitlint/config-conventional":"19.1.0","@cspell/dict-cryptocurrencies":"5.0.0","@rebeccastevens/eslint-config":"2.0.11","@rollup/plugin-replace":"5.0.5","@semantic-release/changelog":"6.0.3","@semantic-release/commit-analyzer":"12.0.0","@semantic-release/git":"10.0.1","@semantic-release/github":"10.0.2","@semantic-release/npm":"12.0.0","@semantic-release/release-notes-generator":"13.0.0","@types/node":"20.12.2","@types/rollup-plugin-auto-external":"2.0.5","@typescript-eslint/eslint-plugin":"7.4.0","@typescript-eslint/parser":"7.4.0","@vitest/coverage-v8":"1.4.0","commitizen":"4.3.0","cspell":"8.6.1","cz-conventional-changelog":"3.3.0","deassert":"1.0.2","eslint":"8.57.0","eslint-config-prettier":"9.1.0","eslint-import-resolver-typescript":"3.6.1","eslint-plugin-eslint-comments":"3.2.0","eslint-plugin-functional":"6.4.0","eslint-plugin-import":"2.29.1","eslint-plugin-jsdoc":"48.2.2","eslint-plugin-markdown":"3.0.1","eslint-plugin-n":"16.6.2","eslint-plugin-optimize-regex":"1.2.1","eslint-plugin-prettier":"5.1.3","eslint-plugin-promise":"6.1.1","eslint-plugin-sonarjs":"0.25.0","eslint-plugin-unicorn":"51.0.1","eslint-plugin-vitest":"0.4.1","husky":"9.0.11","knip":"5.7.0","lint-staged":"15.2.2","markdownlint":"0.34.0","markdownlint-cli":"0.39.0","prettier":"3.2.5","prettier-plugin-packagejson":"2.4.14","rimraf":"5.0.5","rollup":"4.13.2","rollup-plugin-auto-external":"2.0.0","rollup-plugin-ts":"3.4.5","semantic-release":"23.0.6","ts-api-utils":"1.3.0","tsc-files":"1.1.4","typescript":"5.4.3","vite-tsconfig-paths":"4.3.2","vitest":"1.4.0"},"peerDependencies":{"ts-api-utils":">=1.3.0","typescript":">=5.0.0"},"packageManager":"pnpm@8.15.5","_id":"type-to-string@1.0.1","gitHead":"cc8b790471e1c6ec7ec79d0c70a8d4054d2964c2","_nodeVersion":"21.7.1","_npmVersion":"10.5.0","dist":{"integrity":"sha512-MscbCKAwlo57Yvjic1NGg06Cp9vQd6uwqtDdk4ehAS727gL4R6/S5loabMbI9Wlr07ip6OuMYkEdfj8re5ldPA==","shasum":"4ae4be1f986ba5653da8d5ec635a842253475963","tarball":"https://registry.npmjs.org/type-to-string/-/type-to-string-1.0.1.tgz","fileCount":7,"unpackedSize":34735,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICHQ8GzjeHsx9ucPdtfjSF8F0+OFpFJ58ta0v/WjgrJtAiEA3D0hTv7IkimUYEGCdw+S3YTA0t3Up3HbABngLin7MyE="}]},"_npmUser":{"name":"rebeccastevens","email":"rebecca.stevens@outlook.co.nz"},"directories":{},"maintainers":[{"name":"rebeccastevens","email":"rebecca.stevens@outlook.co.nz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/type-to-string_1.0.1_1712145717390_0.14827298155045088"},"_hasShrinkwrap":false},"2.0.0":{"name":"type-to-string","version":"2.0.0","description":"Get a string representation of a TypeScript type.","keywords":["TypeScript","type","toString"],"homepage":"https://github.com/RebeccaStevens/type-to-string#readme","bugs":{"url":"https://github.com/RebeccaStevens/type-to-string/issues"},"repository":{"type":"git","url":"git+https://github.com/RebeccaStevens/type-to-string.git"},"license":"BSD-3-Clause","author":{"name":"Rebecca Stevens","email":"rebecca.stevens@outlook.co.nz"},"type":"module","exports":{"types":{"import":"./dist/index.d.mts","require":"./dist/index.d.cts"},"import":"./dist/index.mjs","require":"./dist/index.cjs"},"scripts":{"build":"pnpm run build:node","build:node":"rimraf dist && rollup -c rollup.config.ts --configPlugin rollup-plugin-ts","cz":"git-cz","lint":"pnpm run lint:js && pnpm run lint:md && pnpm run lint:prettier && pnpm run lint:knip && pnpm run lint:spelling && pnpm run lint:packages","lint:js":"eslint .","lint:js-fix":"eslint . --fix","lint:knip":"pnpm run lint:knip:development && pnpm run lint:knip:production","lint:knip:development":"knip --exclude exports,nsExports,types,nsTypes","lint:knip:production":"knip --production --strict --exclude exports,nsExports,types,nsTypes","lint:md":"markdownlint \"**/*.md\" --config=.markdownlint.json --ignore-path=.markdownlintignore","lint:packages":"pnpm dedupe --check","lint:packages-fix":"pnpm dedupe","lint:prettier":"prettier \"**/*\" --ignore-unknown --list-different","lint:prettier-fix":"prettier \"**/*\" --ignore-unknown --write","lint:spelling":"cspell \"**\" \".github/**/*\"","prepare":"husky","release":"semantic-release","test":"pnpm run test:js","test:js":"vitest --coverage --run","test:js:watch":"vitest","type-check":"tsc --noEmit -p tsconfig.build.json"},"devDependencies":{"@commitlint/cli":"19.2.1","@commitlint/config-conventional":"19.1.0","@cspell/dict-cryptocurrencies":"5.0.0","@rebeccastevens/eslint-config":"2.0.11","@rollup/plugin-replace":"5.0.5","@semantic-release/changelog":"6.0.3","@semantic-release/commit-analyzer":"12.0.0","@semantic-release/git":"10.0.1","@semantic-release/github":"10.0.2","@semantic-release/npm":"12.0.0","@semantic-release/release-notes-generator":"13.0.0","@types/node":"20.12.2","@types/rollup-plugin-auto-external":"2.0.5","@typescript-eslint/eslint-plugin":"7.4.0","@typescript-eslint/parser":"7.4.0","@typescript/vfs":"1.5.0","@vitest/coverage-v8":"1.4.0","commitizen":"4.3.0","cspell":"8.6.1","cz-conventional-changelog":"3.3.0","deassert":"1.0.2","dedent":"1.5.1","eslint":"8.57.0","eslint-config-prettier":"9.1.0","eslint-import-resolver-typescript":"3.6.1","eslint-plugin-eslint-comments":"3.2.0","eslint-plugin-functional":"6.4.0","eslint-plugin-import":"2.29.1","eslint-plugin-jsdoc":"48.2.2","eslint-plugin-markdown":"3.0.1","eslint-plugin-n":"16.6.2","eslint-plugin-optimize-regex":"1.2.1","eslint-plugin-prettier":"5.1.3","eslint-plugin-promise":"6.1.1","eslint-plugin-sonarjs":"0.25.0","eslint-plugin-unicorn":"51.0.1","eslint-plugin-vitest":"0.4.1","husky":"9.0.11","knip":"5.7.0","lint-staged":"15.2.2","markdownlint":"0.34.0","markdownlint-cli":"0.39.0","prettier":"3.2.5","prettier-plugin-packagejson":"2.4.14","rimraf":"5.0.5","rollup":"4.13.2","rollup-plugin-auto-external":"2.0.0","rollup-plugin-ts":"3.4.5","semantic-release":"23.0.6","ts-api-utils":"1.3.0","tsc-files":"1.1.4","typescript":"5.4.3","vite-tsconfig-paths":"4.3.2","vitest":"1.4.0"},"peerDependencies":{"ts-api-utils":">=1.3.0","typescript":">=5.0.0"},"packageManager":"pnpm@8.15.5","_id":"type-to-string@2.0.0","gitHead":"dd95924301479b9ebcdae6e998cefbf64688d623","_nodeVersion":"21.7.2","_npmVersion":"10.5.0","dist":{"integrity":"sha512-tQhiWuq8+FkAYEAQ+Po1VPwzUhPVOXupzsVxZ/n9hN6oP92KXOpf4CFX0wclYa7QsrP4eBUIMydYJyv3ttRVRA==","shasum":"4bac8bd25ae19b3d50fc3cbcd7fe42d2800882fe","tarball":"https://registry.npmjs.org/type-to-string/-/type-to-string-2.0.0.tgz","fileCount":7,"unpackedSize":33436,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIACYXfeg27WboQ8ry1iXPIdqwOeeE7YViEP8njejfQY4AiBNtu1yt2GH0Tty9TCcNWVueiudd+A1bbQjbt7IjgFInw=="}]},"_npmUser":{"name":"rebeccastevens","email":"rebecca.stevens@outlook.co.nz"},"directories":{},"maintainers":[{"name":"rebeccastevens","email":"rebecca.stevens@outlook.co.nz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/type-to-string_2.0.0_1712393572474_0.21821400035138616"},"_hasShrinkwrap":false}},"time":{"created":"2024-04-02T03:39:34.628Z","1.0.0":"2024-04-02T03:39:34.786Z","modified":"2024-04-06T08:52:52.838Z","1.0.1":"2024-04-03T12:01:57.543Z","2.0.0":"2024-04-06T08:52:52.650Z"},"maintainers":[{"name":"rebeccastevens","email":"rebecca.stevens@outlook.co.nz"}],"description":"Get a string representation of a TypeScript type.","homepage":"https://github.com/RebeccaStevens/type-to-string#readme","keywords":["TypeScript","type","toString"],"repository":{"type":"git","url":"git+https://github.com/RebeccaStevens/type-to-string.git"},"author":{"name":"Rebecca Stevens","email":"rebecca.stevens@outlook.co.nz"},"bugs":{"url":"https://github.com/RebeccaStevens/type-to-string/issues"},"license":"BSD-3-Clause","readme":"<div align=\"center\">\n\n# Type to String\n\nGet a string representation of a TypeScript type.\n\n[![npm version](https://img.shields.io/npm/v/type-to-string.svg)](https://www.npmjs.com/package/type-to-string)\n[![CI](https://github.com/RebeccaStevens/type-to-string/actions/workflows/release.yml/badge.svg)](https://github.com/RebeccaStevens/type-to-string/actions/workflows/release.yml)\n[![Coverage Status](https://codecov.io/gh/RebeccaStevens/type-to-string/branch/main/graph/badge.svg?token=MVpR1oAbIT)](https://codecov.io/gh/RebeccaStevens/type-to-string)\\\n[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)\n[![GitHub Discussions](https://img.shields.io/github/discussions/RebeccaStevens/type-to-string?style=flat-square)](https://github.com/RebeccaStevens/type-to-string/discussions)\n[![BSD 3 Clause license](https://img.shields.io/github/license/RebeccaStevens/type-to-string.svg?style=flat-square)](https://opensource.org/licenses/BSD-3-Clause)\n[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=flat-square)](https://commitizen.github.io/cz-cli/)\n[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=flat-square)](https://github.com/semantic-release/semantic-release)\n\n</div>\n\nThis project is really just me playing with different ways to get string representions of TypeScript types.\n\nFor most users, you can probably just use TypeScript built in functions:\n\n```ts\nchecker.typeToString(type);\n```\n\n```ts\ntypeNode.getText();\n```\n\n## Donate\n\n[Any donations would be much appreciated](./DONATIONS.md). 😄\n\n## Installation\n\n```sh\n# Install with npm\nnpm install type-to-string\n\n# Install with pnpm\npnpm add type-to-string\n\n# Install with yarn\nyarn add type-to-string\n```\n","readmeFilename":"README.md"}