Gathering detailed insights and metrics for @types/json-schema-faker
Gathering detailed insights and metrics for @types/json-schema-faker
Gathering detailed insights and metrics for @types/json-schema-faker
Gathering detailed insights and metrics for @types/json-schema-faker
The repository for high quality TypeScript type definitions.
npm install @types/json-schema-faker
Typescript
Module System
TypeScript (99.84%)
JavaScript (0.15%)
Shell (0.01%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
NOASSERTION License
50,038 Stars
89,739 Commits
30,435 Forks
640 Watchers
6 Branches
9,957 Contributors
Updated on Jul 14, 2025
Latest Version
0.5.4
Package Id
@types/json-schema-faker@0.5.4
Unpacked Size
6.97 kB
Size
2.25 kB
File Count
5
Published on
Nov 07, 2023
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
1
npm install --save @types/json-schema-faker
This package contains type definitions for json-schema-faker (https://github.com/json-schema-faker/json-schema-faker).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/json-schema-faker.
1import { JSONSchema4, JSONSchema6, JSONSchema7 } from "json-schema"; 2 3declare namespace jsf { 4 const version: string; 5 function format(nameOrFormatMap?: NameOrFormatMap, callback?: (schema?: Schema) => void): any; 6 function extend(name: string, cb: () => void): any; 7 function define(name: string, cb: () => void): any; 8 function reset(name: string): any; 9 function locate(name: string): any; 10 function generate(schema: Schema, refs?: string | Schema[]): any; 11 function resolve(schema: Schema, refs?: string | Schema[], cwd?: string): Promise<any[]>; 12 function option(option: string | OptionInputObject, value?: any): any; 13 14 // jsf.random 15 namespace random { 16 function randexp(value: string): string | number; 17 function pick<T>(collection: T[]): T; 18 function date(step: string): Date; 19 function shuffle<T>(collection: T[]): T[]; 20 function number(min?: number, max?: number, defMin?: number, defMax?: number, hasPrecision?: boolean): number; 21 } 22 23 type Schema = JSONSchema4 | JSONSchema6 | JSONSchema7; 24 type OptionInputObject = Partial< 25 { 26 [option in jsfOptions]: any; 27 } 28 >; 29 type NameOrFormatMap = string | { name: string; callback: (schema?: Schema) => void }; 30 31 // List of all valid registerable options. 32 type jsfOptions = 33 | "defaultInvalidTypeProduct" 34 | "defaultRandExpMax" 35 | "ignoreProperties" 36 | "ignoreMissingRefs" 37 | "failOnInvalidTypes" 38 | "failOnInvalidFormat" 39 | "alwaysFakeOptionals" 40 | "optionalsProbability" 41 | "fixedProbabilities" 42 | "useExamplesValue" 43 | "useDefaultValue" 44 | "requiredOnly" 45 | "minItems" 46 | "maxItems" 47 | "minLength" 48 | "maxLength" 49 | "refDepthMin" 50 | "refDepthMax" 51 | "resolveJsonPath" 52 | "reuseProperties" 53 | "fillProperties" 54 | "random" 55 | "replaceEmptyByRandomValue"; 56} 57 58/** @deprecated calling JsonSchemaFaker() is deprecated, call either .generate() or .resolve()' */ 59declare function jsf(schema: jsf.Schema, refs?: string | jsf.Schema[]): any; 60export as namespace jsf; 61export = jsf; 62
These definitions were written by Charles Desbiens.
No vulnerabilities found.
Reason
30 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 10
Reason
security policy file detected
Details
Reason
no dangerous workflow patterns detected
Reason
0 existing vulnerabilities detected
Reason
no binaries found in the repo
Reason
Found 27/30 approved changesets -- score normalized to 9
Reason
license file detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 8
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
project is not fuzzed
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More