Research
Security News
Threat Actor Exposes Playbook for Exploiting npm to Build Blockchain-Powered Botnets
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
@types/stringify-object
Advanced tools
npm install --save @types/stringify-object
This package contains type definitions for stringify-object (https://github.com/yeoman/stringify-object).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/stringify-object.
// Type definitions for stringify-object 3.3
// Project: https://github.com/yeoman/stringify-object
// Definitions by: Chris Khoo <https://github.com/khoomeister>
// Piotr Błażejewicz <https://github.com/peterblazejewicz>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare namespace stringifyObject { }
declare function stringifyObject(input: any, options?: {
/**
* Preferred indentation
* @default '\t'
*/
indent?: string | undefined,
/**
* Set to false to get double-quoted strings
* @default true
*/
singleQuotes?: boolean | undefined,
/**
* Expected to return a boolean of whether to include the property property of the object object in the output.
*/
filter?(input: any, prop: string | symbol): boolean,
/**
* When set, will inline values up to inlineCharacterLimit length for the sake of more terse output.
*/
inlineCharacterLimit?: number | undefined,
/**
* Expected to return a string that transforms the string that resulted from stringifying object[property].
* This can be used to detect special types of objects that need to be stringified in a particular way.
* The transform function might return an alternate string in this case, otherwise returning the originalResult.
*/
transform?: ((input: any[] | object, prop: number | string | symbol, originalResult: string) => string) | undefined,
}, pad?: string): string;
export = stringifyObject;
These definitions were written by Chris Khoo, and Piotr Błażejewicz.
FAQs
TypeScript definitions for stringify-object
The npm package @types/stringify-object receives a total of 16,498 weekly downloads. As such, @types/stringify-object popularity was classified as popular.
We found that @types/stringify-object 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.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
Security News
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
Security News
Research
A malicious npm package disguised as a WhatsApp client is exploiting authentication flows with a remote kill switch to exfiltrate data and destroy files.