Socket
Socket
Sign inDemoInstall

@types/get-package-type

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/get-package-type

TypeScript definitions for get-package-type


Version published
Maintainers
1
Created
Source

Installation

npm install --save @types/get-package-type

Summary

This package contains type definitions for get-package-type (https://github.com/cfware/get-package-type#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/get-package-type.

index.d.ts

type PackageType = "module" | "commonjs";

interface GetPackageType {
    (filename: string): Promise<PackageType>;
    sync(filename: string): PackageType;
}

declare const getPackageType: GetPackageType;

export = getPackageType;

Additional Details

  • Last updated: Fri, 12 Jan 2024 22:06:56 GMT
  • Dependencies: none

Credits

These definitions were written by Corey Farrell, and Jordan Harband.

FAQs

Package last updated on 12 Jan 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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc