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 🙏

© 2026 – Pkg Stats / Ryan Hefner

type-gene

v0.2.0-beta

Published

Typescript Type Generator

Downloads

25

Readme

TypeScript Type Generator

모듈 호출

NPM Install

npm install type-gene

Require 함수

let typeGenerator = require("type-gene");

ES6 모듈

import typeGenerator from "type-gene";

타입 스크립트 타입 생성 메서드

typeGenerator.generator(fileName, data, typeName);
  • fileName : 타입 생성 파일 저장할 이름 (./type/ 경로에 생성, 이미 파일이 있을경우 이어서 작성됨)
  • data : 타입 생성할 Object (반드시 객체 형태로 전송)
  • typeName : 생성할 interface 타입 이름 (이미 존재할 경우 실행 취소)

타입 스크립트 Config 파일 생성 메서드

typeGenerator.generateConfig(include, exclude, options);
  • include : include 옵션에 사용할 변환할 타입스크립트 파일 목륵(배열로 전달)
  • exclude : exclude 옵션에 사용할 타입 스크립트 파싱 제외할 파일 목록(배열로 전달)
  • options : 설정 옵션들

옵션

{
  target: string; // ECMA 자바스크립트 버전
  outDir: string; // javascript 로 파싱한 파일 저장할 폴더
  lib?: Array<string>; // 사용할 라이브러리
  module?: string; // 모듈을 위한 코드 생성 설정: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'
  isStrict: boolean; // strict 모드 설정
}

타입스크립트 필요 Npm 모듈 자동설치

typeGenerator.setTsModule(installOption);
  • installOption : 설치옵션 ('D','G','N')