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

tsimporter

v1.2.14

Published

Automatically searches for TypeScript definitions in workspace files and provides all known symbols as completion item to allow code completion.

Readme

TS Importer

Automatically searches for TypeScript definitions in workspace files and provides all known symbols as completion item to allow code completion.

If a TypeScripts ^1.9.0 paths.* mapping is set in the tsconfig.json, the imports are tried to be resolved absolutly. Otherwise the imports are resolved relative to the current file.

The current supported symbols are:

  export class [name] { ... }
  export abstract class [name] { ... }
  export interface [name] { ... }
  export type [name] =  { ... },
  export const [name] = ...
  export var [name] = ...
  export let [name] = ...
  export function [name] = ...
  export function* [name] = ...
  export enum [name] = ...
  export default ...


Configuration

This can be configured in .vscode/settings.json.

Settings will only be applied on startup or executing the reindex command.

tsimporter.filesToScan - Glob for which files in your workspace to scan, defaults to ['**/*.ts','**/*.tsx']

tsimporter.filesToExclude - Glob for files to exclude from watch and scan, e.g ./out/**. Defaults to nothing

tsimporter.showNotifications - Show status notifications, default is false

tsimporter.doubleQuotes - Use double quotes rather than single

tsimporter.spaceBetweenBraces - Insert spaces between the import braces. ( import {test} from 'test' vs. import { test } from 'test' )

tsimporter.disabled - Disables the extension

tsimporter.removeFileExtensions - File Extensions to remove. default is '.d.ts,.ts,.tsx'

tsimporter.lowImportance - If true, the code completion items will be sorted back to the build in completion items. default is false

tsimporter.emitSemicolon - If false, no semicolon will be written. default is true

tsimporter.tsconfigName - An alternative tsconfig.json filename. default is 'tsconfig.json'

tsimporter.noStatusBar - True to hide the status bar

tsimporter.preferRelative - When true shorter relative imports will be be prefered instead of absolute imports


Changelog

1.2.14

  • Added noStatusBar option
  • Added preferRelative option

1.2.13

  • Added openSymbol command to open a symbols document. The command filters the search by the word under the cursor or the current selection.

1.2.12

  • Added addImport command to add a import manually. The command filters the search by the word under the cursor or the current selection.

1.2.11

  • Support of export function* foo() {...}; generator syntax

1.2.10

  • Support of export default X; syntax

1.2.9

  • BUGFIX with multiline string parsing

1.2.8

  • BUGFIX NPE with import statements like import "reflect-metadata";
  • Resolving all known symbols instead for better code completion
  • No code completion in comments and strings

1.2.7

  • New Param tsimporter.tsconfigName
  • Dump index command creates an empty JSON document with index content

1.2.6

  • BUGFIX with parent folder resolution was ./../module instead of ../module

1.2.5

  • New Param emitSemicolon

1.2.4

  • New Param lowImportance

1.2.3

  • BUGFIX: Support of filenames including dots

1.2.2

  • Add support of tsx files

1.2.1

  • Updated to vscode 1.5.3

1.2.0

  • Add support of * as Symbol syntax
  • Add support of export default syntax

1.1.0

  • BUGFIX: support of vscode 1.5.2
  • Changed filesToScan to an array and added filesToExclude glob patterns
  • Automatically add the import for the selected code completion item
  • Filtering known symbols from code completion items

1.0.1

  • BUGFIX: respecting the tsimporter.doubleQuotes setting
  • Processing of export function and export enum

1.0.0

  • First Version

ToDo

  • Follow up ///<reference path="..." /> declarations
  • Process node_modules/**/*.d.ts
  • Process typings/**/*.d.ts