Socket
Socket
Sign inDemoInstall

type-to-string

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

type-to-string

Get a string representation of a TypeScript type.


Version published
Weekly downloads
6.8K
decreased by-23.76%
Maintainers
1
Weekly downloads
 
Created
Source

Type to String

Get a string representation of a TypeScript type.

npm version CI Coverage Status
code style: prettier GitHub Discussions BSD 3 Clause license Commitizen friendly semantic-release

This project is really just me playing with different ways to get string representions of TypeScript types.

For most users, you can probably just use TypeScript built in functions:

checker.typeToString(type);
typeNode.getText();

Donate

Any donations would be much appreciated. 😄

Installation

# Install with npm
npm install type-to-string

# Install with pnpm
pnpm add type-to-string

# Install with yarn
yarn add type-to-string

Keywords

FAQs

Package last updated on 03 Apr 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc