New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@types/quick-format-unescaped

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/quick-format-unescaped

TypeScript definitions for quick-format-unescaped

  • 4.0.3
  • ts4.5
  • ts4.6
  • ts4.7
  • ts4.8
  • ts4.9
  • ts5.0
  • ts5.1
  • ts5.2
  • ts5.3
  • ts5.4
  • ts5.5
  • ts5.6
  • ts5.7
  • ts5.8
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Installation

npm install --save @types/quick-format-unescaped

Summary

This package contains type definitions for quick-format-unescaped (https://github.com/davidmarkclements/quick-format-unescaped#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/quick-format-unescaped.

index.d.ts

/**
 * Alternative to NodeJS `util.format`. Does not escape strings.
 * @description Uses `JSON.stringify` instead of `util.inspect`, this means functions _will not be serialized_.
 * @param fmt A printf-like format string. Example: `'hello %s %j %d'`
 * @param parameters Values to be inserted into the `fmt` string. Example: `['world', {obj:true}]`
 * @param options Passing an options object as the third parameter with a `stringify` will mean any objects will be passed
 * to the supplied function instead of an the internal `tryStringify` function. This can be useful when using augmented
 * capability serializers such as `fast-safe-stringify` or `fast-redact`.
 * @example
 * format('hello %s %o', ['world', {obj: true}])
 * // 'hello world {"obj": true}'
 */
declare function format(fmt: string, parameters: readonly unknown[], options?: format.Options): string;

declare namespace format {
    interface Options {
        /**
         * Function that stringifies objects.
         */
        stringify: (o: unknown) => string;
    }
}

export = format;

Additional Details

  • Last updated: Mon, 20 Nov 2023 23:36:24 GMT
  • Dependencies: none

Credits

These definitions were written by Adam Vigneaux.

FAQs

Package last updated on 21 Nov 2023

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