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

nodejs-package-types

v1.1.4

Published

Customized Package Types

Downloads

53

Readme

nodejs-package-types

Customized Package Types (See all modules). Since it is very difficult to do a pull request to https://github.com/DefinitelyTyped/DefinitelyTyped, I made my own typescript file definition. This module can make it easier for you to develop a program or library.

Installation

Using tarball is useful for git which not installed properly

| description | link | | :--- | :--- | | short link | https://bit.ly/nodejs-package-types | | full link tarball (recommended) | https://github.com/dimaslanjaka/nodejs-package-types/raw/main/release/nodejs-package-types.tgz | | repository tarball | https://github.com/dimaslanjaka/nodejs-package-types/tarball/main |

Modules

| package names | link | description | | :--- | :--- | :--- | | @types/skelljs, ~@types/rimraf,~ @types/kill-port, @types/markdown-it-abbr, @types/markdown-it-footnote, @types/markdown-it-image-figures, @types/markdown-it-mark, @types/markdown-it-sub, @types/markdown-it-sup | https://github.com/dimaslanjaka/nodejs-package-types/raw/main/release/nodejs-package-types.tgz | all sub modules automatically detected by VSCode and Typescript | | @types/hexo | https://github.com/dimaslanjaka/nodejs-package-types/raw/hexo/release/types-hexo.tgz | | @types/hexo-util | https://github.com/dimaslanjaka/nodejs-package-types/raw/main/hexo-util/release/types-hexo-util.tgz | | @types/through2 | https://github.com/dimaslanjaka/nodejs-package-types/raw/through2/release/types-through2.tgz |

yarn

yarn add https://github.com/dimaslanjaka/nodejs-package-types/raw/main/release/nodejs-package-types.tgz --dev

npm

npm i https://github.com/dimaslanjaka/nodejs-package-types/raw/main/release/nodejs-package-types.tgz -D

OR you can visit GitPkg and insert which branch or subfolder you want to install

Troubleshooting

error case

npm ERR! command git --no-replace-objects ls-remote ssh://[email protected]...
npm ERR! [email protected]: Permission denied (publickey).
npm ERR! fatal: Could not read from remote repository.

dump your ssh

ssh -vT [email protected]

fix by (source: https://stackoverflow.com/a/72906559)

git config --global url."https://github.com/".insteadOf ssh://[email protected]/
git config --global url."https://github.com/".insteadOf [email protected]:
git config --global url."https://".insteadOf ssh://
npm install https://github.com/dimaslanjaka/nodejs-package-types.git#main --legacy-peer-deps

if git not installed properly, try installing from repository tarball (source: https://stackoverflow.com/a/32436218)

npm i https://github.com/dimaslanjaka/nodejs-package-types/tarball/main

Usages

add below codes to tsconfig.json for included in vscode types

{
  "compilerOptions": {
    "typeRoots": [
      "./node_modules/@types",
      "./node_modules/nodejs-package-types/typings"
    ],
    "types": ["node", "nodejs-package-types"]
  }
}

OR just include the types to tsconfig.json

{
  "compilerOptions": {
    "types": ["nodejs-package-types"]
  }
}

OR add to single file

import 'nodejs-package-types';
// or
import 'nodejs-package-types/typings/index';

OR using triple slash reference at top JS or TS files

/// <reference types="nodejs-package-types" />

Using at local package (development)

git submodule add https://github.com/dimaslanjaka/nodejs-package-types.git packages/@types
npm i -D ./packages/@types/hexo
npm i -D ./packages/@types/hexo-bunyan
npm i -D ./packages/@types/hexo-log