npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@bbros/ts.md

v0.2.4

Published

Typescript interface documentation tool

Downloads

4

Readme

ts.md

이 라이브러리는 Typescript에서 interface와 enum 등의 타입을 자동으로 문서화 시켜주는 라이브러리입니다.

이후 Public Package로 배포할 계획을 가지고 있습니다.

Install

$npm i -g @boostbrothers/ts.md # global
or
$npm i -D @boostbrothers/ts.md # local

Usage

Global installed

$tsmd [configfile path]
or
$tsmd ./.tsmdrc.json

Local installed

$npx tsmd [configfile path]
or
$npx tsmd ./.tsmdrc.json

Config

실행 경로에 .tsmdrc.json을 만들어주세요.

./.tsmdrc.json # 기본 경로

설정 파일에 필요 정보를 입력해주세요.

Example .tsmdrc.json

{
  "path": "./src",
  "include": ["**/*.interface.ts"],
  "out": "./docs/schemata.md"
}

name | type | is required | default | description --- | :---: | :---: | --- | --- path | string | | ./ | 문서화를 진행할 typescript source 상대 경로 extensions | string[] | undefined | | undefined | 확장자 목록 exclude | string[] | undefined | | undefined | 문서화 제외 목록 include | string[] | undefined | | undefined | 문서화 포함 목록(ex. ["**/*.interface.ts"]) depth | number | undefined | | undefined | 디렉토리 구조 탐색 깊이 제한 out | string | undefined | | ./docs/schemata.md | 문서를 내보낼 파일 위치

TODO

  • [ ] Index(TOC)
  • [ ] File 별로 출력

Features

Type Nodes

  • [x] Type Reference(kind: 174)
  • [x] Array Type Node(kind: 179)
  • [x] Tuple Type Node(kind: 180)
  • [x] Union Type Node(kind: 183)
  • [x] Intersection Type Node(kind: 184)
  • [x] Literal Type Node(kind: 192)

Tokens

  • [x] First Literal
  • [x] Numeric Literal
  • [x] String Literal
  • [x] String Keyword
  • [x] Number Keyword
  • [x] Boolean Keyword
  • [x] Null Keyword
  • [x] Unknown Keyword
  • [x] Any Keyword

Declaration

  • [x] Identifier(kind: 78)
    • escapedText: string
  • [x] Type Element
    • name?: PropertyName
    • questionToken?: QuestionToken
  • [x] Property Signature(kind: 163)
    • name: PropertyName
    • questionToken?: QuestionToken
    • type?: TypeNode
  • [x] Enum Member Declaration(kind: 292)
  • [x] Enum Declaration(kind: 256)
  • [x] Type Literal(kind: 178)
    • members: TypeElement[]
  • [x] Type Parameter Declaration(kind: 160)