@types/uuid
Advanced tools
+7
-49
| { | ||
| "name": "@types/uuid", | ||
| "version": "10.0.0", | ||
| "description": "TypeScript definitions for uuid", | ||
| "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/uuid", | ||
| "version": "11.0.0", | ||
| "description": "Stub TypeScript definitions entry for uuid, which provides its own types definitions", | ||
| "main": "", | ||
| "scripts": {}, | ||
| "license": "MIT", | ||
| "contributors": [ | ||
| { | ||
| "name": "Oliver Hoffmann", | ||
| "githubUsername": "iamolivinius", | ||
| "url": "https://github.com/iamolivinius" | ||
| }, | ||
| { | ||
| "name": "Felipe Ochoa", | ||
| "githubUsername": "felipeochoa", | ||
| "url": "https://github.com/felipeochoa" | ||
| }, | ||
| { | ||
| "name": "Chris Barth", | ||
| "githubUsername": "cjbarth", | ||
| "url": "https://github.com/cjbarth" | ||
| }, | ||
| { | ||
| "name": "Linus Unnebäck", | ||
| "githubUsername": "LinusU", | ||
| "url": "https://github.com/LinusU" | ||
| }, | ||
| { | ||
| "name": "Christoph Tavan", | ||
| "githubUsername": "ctavan", | ||
| "url": "https://github.com/ctavan" | ||
| } | ||
| ], | ||
| "main": "", | ||
| "types": "index.d.ts", | ||
| "exports": { | ||
| "./package.json": "./package.json", | ||
| ".": { | ||
| "types": { | ||
| "import": "./index.d.mts", | ||
| "default": "./index.d.ts" | ||
| } | ||
| } | ||
| "dependencies": { | ||
| "uuid": "*" | ||
| }, | ||
| "repository": { | ||
| "type": "git", | ||
| "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", | ||
| "directory": "types/uuid" | ||
| }, | ||
| "scripts": {}, | ||
| "dependencies": {}, | ||
| "typesPublisherContentHash": "08fbc5ff7d23aaac1e81b5acf98181d2544ce6ffd5578e9879e2a75f0c087d54", | ||
| "typeScriptVersion": "4.7" | ||
| "deprecated": "This is a stub types definition. uuid provides its own type definitions, so you do not need this installed." | ||
| } |
+2
-14
@@ -1,15 +0,3 @@ | ||
| # Installation | ||
| > `npm install --save @types/uuid` | ||
| This is a stub types definition for @types/uuid (https://github.com/uuidjs/uuid#readme). | ||
| # Summary | ||
| This package contains type definitions for uuid (https://github.com/uuidjs/uuid). | ||
| # Details | ||
| Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/uuid. | ||
| ### Additional Details | ||
| * Last updated: Thu, 20 Jun 2024 21:07:25 GMT | ||
| * Dependencies: none | ||
| # Credits | ||
| These definitions were written by [Oliver Hoffmann](https://github.com/iamolivinius), [Felipe Ochoa](https://github.com/felipeochoa), [Chris Barth](https://github.com/cjbarth), [Linus Unnebäck](https://github.com/LinusU), and [Christoph Tavan](https://github.com/ctavan). | ||
| uuid provides its own type definitions, so you don't need @types/uuid installed! |
| import uuid from "./index.js"; | ||
| export import v1 = uuid.v1; | ||
| export import v1ToV6 = uuid.v1ToV6; | ||
| export import v3 = uuid.v3; | ||
| export import v4 = uuid.v4; | ||
| export import v5 = uuid.v5; | ||
| export import v6 = uuid.v6; | ||
| export import v6ToV1 = uuid.v6ToV1; | ||
| export import v7 = uuid.v7; | ||
| export import NIL = uuid.NIL; | ||
| export import MAX = uuid.MAX; | ||
| export import version = uuid.version; | ||
| export import validate = uuid.validate; | ||
| export import stringify = uuid.stringify; | ||
| export import parse = uuid.parse; | ||
| export import V1Options = uuid.V1Options; | ||
| export import V4Options = uuid.V4Options; | ||
| export import V6Options = uuid.V6Options; | ||
| export import V7Options = uuid.V7Options; |
-113
| // disable automatic export | ||
| export {}; | ||
| // Uses ArrayLike to admit Uint8 and co. | ||
| type OutputBuffer = ArrayLike<number>; | ||
| type InputBuffer = ArrayLike<number>; | ||
| interface RandomOptions { | ||
| /** `Array` of 16 random bytes (0-255) */ | ||
| random?: InputBuffer | undefined; | ||
| } | ||
| interface RngOptions { | ||
| /** Alternative to `options.random`, a `Function` that returns an `Array` of 16 random bytes (0-255) */ | ||
| rng?: (() => InputBuffer) | undefined; | ||
| } | ||
| interface V1BaseOptions { | ||
| /** RFC "node" field as an `Array[6]` of byte values (per 4.1.6) */ | ||
| node?: InputBuffer | undefined; | ||
| /** RFC "clock sequence" as a `Number` between 0 - 0x3fff */ | ||
| clockseq?: number | undefined; | ||
| /** RFC "timestamp" field (`Number` of milliseconds, unix epoch) */ | ||
| msecs?: number | Date | undefined; | ||
| /** RFC "timestamp" field (`Number` of nanoseconds to add to msecs, should be 0-10,000) */ | ||
| nsecs?: number | undefined; | ||
| } | ||
| interface V1RandomOptions extends V1BaseOptions, RandomOptions {} | ||
| interface V1RngOptions extends V1BaseOptions, RngOptions {} | ||
| export type V1Options = V1RandomOptions | V1RngOptions; | ||
| export type V4Options = RandomOptions | RngOptions; | ||
| export type V6Options = V1Options; | ||
| interface V7BaseOptions { | ||
| msecs?: number | Date | undefined; | ||
| seq?: number; | ||
| } | ||
| export type V7Options = (RandomOptions | RngOptions) & V7BaseOptions; | ||
| type VToV = ((uuid: string) => string) & ((uuid: OutputBuffer) => Uint8Array); | ||
| type v1String = (options?: V1Options) => string; | ||
| type v1Buffer = <T extends OutputBuffer>(options: V1Options | null | undefined, buffer: T, offset?: number) => T; | ||
| type v1 = v1Buffer & v1String; | ||
| type v1ToV6 = VToV; | ||
| type v4String = (options?: V4Options) => string; | ||
| type v4Buffer = <T extends OutputBuffer>(options: V4Options | null | undefined, buffer: T, offset?: number) => T; | ||
| type v4 = v4Buffer & v4String; | ||
| type v3String = (name: string | InputBuffer, namespace: string | InputBuffer) => string; | ||
| type v3Buffer = <T extends OutputBuffer>( | ||
| name: string | InputBuffer, | ||
| namespace: string | InputBuffer, | ||
| buffer: T, | ||
| offset?: number, | ||
| ) => T; | ||
| interface v3Static { | ||
| // https://github.com/uuidjs/uuid/blob/master/src/v35.js#L16 | ||
| DNS: string; | ||
| // https://github.com/uuidjs/uuid/blob/master/src/v35.js#L17 | ||
| URL: string; | ||
| } | ||
| type v3 = v3Buffer & v3String & v3Static; | ||
| type v5String = (name: string | InputBuffer, namespace: string | InputBuffer) => string; | ||
| type v5Buffer = <T extends OutputBuffer>( | ||
| name: string | InputBuffer, | ||
| namespace: string | InputBuffer, | ||
| buffer: T, | ||
| offset?: number, | ||
| ) => T; | ||
| interface v5Static { | ||
| // https://github.com/uuidjs/uuid/blob/master/src/v35.js#L16 | ||
| DNS: string; | ||
| // https://github.com/uuidjs/uuid/blob/master/src/v35.js#L17 | ||
| URL: string; | ||
| } | ||
| type v5 = v5Buffer & v5String & v5Static; | ||
| type v6String = (options?: V6Options) => string; | ||
| type v6Buffer = <T extends OutputBuffer>(options: V6Options | null | undefined, buffer: T, offset?: number) => T; | ||
| type v6 = v6Buffer & v6String; | ||
| type v6ToV1 = VToV; | ||
| type v7String = (options?: V7Options) => string; | ||
| type v7Buffer = <T extends OutputBuffer>(options: V7Options | null | undefined, buffer: T, offset?: number) => T; | ||
| type v7 = v7Buffer & v7String; | ||
| type NIL = string; | ||
| type MAX = string; | ||
| type parse = (uuid: string) => Uint8Array; | ||
| type stringify = (buffer: InputBuffer, offset?: number) => string; | ||
| type validate = (uuid: string) => boolean; | ||
| type version = (uuid: string) => number; | ||
| export const NIL: NIL; | ||
| export const MAX: MAX; | ||
| export const parse: parse; | ||
| export const stringify: stringify; | ||
| export const v1: v1; | ||
| export const v1ToV6: v1ToV6; | ||
| export const v3: v3; | ||
| export const v4: v4; | ||
| export const v5: v5; | ||
| export const v6: v6; | ||
| export const v6ToV1: v6ToV1; | ||
| export const v7: v7; | ||
| export const validate: validate; | ||
| export const version: version; |
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
Empty package
Supply chain riskPackage does not contain any code. It may be removed, is name squatting, or the result of a faulty package publish.
Found 1 instance in 1 package
Wildcard dependency
QualityPackage has a dependency with a floating version range. This can cause issues if the dependency publishes a new major version.
Found 1 instance in 1 package
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
1707
-78.18%1
Infinity%3
-40%0
-100%2
100%1
Infinity%1
Infinity%3
-81.25%1
Infinity%1
Infinity%+ Added
+ Added