
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
@types/resolve-bin
Advanced tools
TypeScript definitions for resolve-bin
npm install --save @types/resolve-bin
This package contains type definitions for resolve-bin (https://github.com/thlorenz/resolve-bin).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/resolve-bin.
interface Options {
/**
* (default: @name) executable name (e.g. 'buster-test')
*/
executable?: string | undefined;
}
interface ResolveBin {
/**
* Resolves the full path to the bin file of a given package by inspecting the "bin" field in its package.json.
*
* @param name module name, i.e. 'tap'
* @param cb called back with the full path to the bin file of the module or an error if it couldn't be resolved
*/
(name: string, cb: (error: Error | null, path: string) => void): void;
/**
* Resolves the full path to the bin file of a given package by inspecting the "bin" field in its package.json.
*
* @param name module name, i.e. 'tap'
* @param opts options
* @param cb called back with the full path to the bin file of the module or an error if it couldn't be resolved
*/
(name: string, opts: Options, cb: (error: Error | null, path: string) => void): void;
/**
* Synchronous version of resolveBin
*
* @param name module name, i.e. 'tap'
* @param opts options
*/
sync(name: string, opts?: Options): string | never;
}
/**
* Resolves the full path to the bin file of a given package by inspecting the "bin" field in its package.json.
*/
declare const resolveBin: ResolveBin;
export = resolveBin;
These definitions were written by Cameron Hunter.
FAQs
TypeScript definitions for resolve-bin
The npm package @types/resolve-bin receives a total of 11,006 weekly downloads. As such, @types/resolve-bin popularity was classified as popular.
We found that @types/resolve-bin demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.