@types/stringify-object
TypeScript definitions for stringify-object
Last updated 3 years ago by types .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install @types/stringify-object 
SYNC missed versions from official npm registry.

Installation

npm install --save @types/stringify-object

Summary

This package contains type definitions for stringify-object (https://github.com/yeoman/stringify-object).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/stringify-object.

index.d.ts

/**
 * Stringify an object/array like JSON.stringify just without all the double-quotes
 */
export default function stringifyObject(input: any, options?: Options, pad?: string): string;

export interface 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;
}

Additional Details

  • Last updated: Tue, 07 Nov 2023 15:11:36 GMT
  • Dependencies: none

Credits

These definitions were written by Piotr Błażejewicz.

Current Tags

  • 4.0.5                                ...           latest (2 years ago)
  • 3.1.1                                ...           ts2.0 (9 years ago)
  • 3.1.1                                ...           ts2.1 (9 years ago)
  • 3.2.0                                ...           ts2.2 (8 years ago)
  • 3.2.0                                ...           ts2.3 (8 years ago)
  • 3.2.0                                ...           ts2.4 (8 years ago)
  • 3.2.0                                ...           ts2.5 (8 years ago)
  • 3.2.0                                ...           ts2.6 (8 years ago)
  • 3.2.0                                ...           ts2.7 (8 years ago)
  • 3.2.0                                ...           ts2.8 (8 years ago)
  • 3.2.0                                ...           ts2.9 (8 years ago)
  • 3.3.0                                ...           ts3.0 (6 years ago)
  • 3.3.0                                ...           ts3.1 (6 years ago)
  • 3.3.0                                ...           ts3.2 (6 years ago)
  • 3.3.0                                ...           ts3.3 (6 years ago)
  • 3.3.0                                ...           ts3.4 (6 years ago)
  • 3.3.0                                ...           ts3.5 (6 years ago)
  • 3.3.1                                ...           ts3.6 (5 years ago)
  • 4.0.0                                ...           ts3.7 (5 years ago)
  • 4.0.1                                ...           ts3.8 (4 years ago)
  • 4.0.1                                ...           ts3.9 (4 years ago)
  • 4.0.1                                ...           ts4.0 (4 years ago)
  • 4.0.1                                ...           ts4.1 (4 years ago)
  • 4.0.2                                ...           ts4.2 (3 years ago)
  • 4.0.2                                ...           ts4.3 (3 years ago)
  • 4.0.2                                ...           ts4.4 (3 years ago)
  • 4.0.5                                ...           ts4.5 (2 years ago)
  • 4.0.5                                ...           ts4.6 (2 years ago)
  • 4.0.5                                ...           ts4.7 (2 years ago)
  • 4.0.5                                ...           ts4.8 (2 years ago)
  • 4.0.5                                ...           ts4.9 (2 years ago)
  • 4.0.5                                ...           ts5.0 (2 years ago)
  • 4.0.5                                ...           ts5.1 (2 years ago)
  • 4.0.5                                ...           ts5.2 (2 years ago)
  • 4.0.5                                ...           ts5.3 (2 years ago)
  • 4.0.5                                ...           ts5.4 (2 years ago)
  • 4.0.5                                ...           ts5.5 (2 years ago)
  • 4.0.5                                ...           ts5.6 (2 years ago)
  • 4.0.5                                ...           ts5.7 (2 years ago)
  • 4.0.5                                ...           ts5.8 (2 years ago)
  • 4.0.5                                ...           ts5.9 (2 years ago)
  • 4.0.5                                ...           ts6.0 (2 years ago)

11 Versions

  • 4.0.5                                ...           2 years ago
  • 4.0.4                                ...           2 years ago
  • 4.0.3                                ...           3 years ago
  • 4.0.2                                ...           3 years ago
  • 4.0.1                                ...           4 years ago
  • 4.0.0                                ...           5 years ago
  • 3.3.1                                ...           5 years ago
  • 3.3.0                                ...           6 years ago
  • 3.2.0                                ...           8 years ago
  • 3.1.1                                ...           9 years ago
  • 3.1.0                                ...           9 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 1
Last Month 0
Dependencies (0)
None
Dev Dependencies (0)
None
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |