Socket
Socket
Sign inDemoInstall

type-to-string

Package Overview
Dependencies
0
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

type-to-string


Version published
Weekly downloads
5.7K
decreased by-14.13%
Maintainers
1
Created
Weekly downloads
 

Changelog

Source

2.0.0 (2024-04-06)

Features

  • rework project (928314e)

BREAKING CHANGES

  • rework project

Readme

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

Last updated on 06 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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc