
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@types/quick-format-unescaped
Advanced tools
TypeScript definitions for quick-format-unescaped
npm install --save @types/quick-format-unescaped
This package contains type definitions for quick-format-unescaped (https://github.com/davidmarkclements/quick-format-unescaped#readme).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/quick-format-unescaped.
/**
* 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;
These definitions were written by Adam Vigneaux.
FAQs
TypeScript definitions for quick-format-unescaped
We found that @types/quick-format-unescaped 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.