Interface TarStreamOptionsExperimental

The options that can go along with a file or directory.

UNSTABLE: New API, yet to be vetted.

interface TarStreamOptions {
    devmajor?: string;
    devminor?: string;
    gid?: number;
    gname?: string;
    mode?: number;
    mtime?: number;
    uid?: number;
    uname?: string;
}

Properties

devmajor?: string

The major number for character device.

{''}
devminor?: string

The minor number for block device entry.

{''}
gid?: number

An octal literal.

{0o0}
gname?: string

An ASCII string. Should be used in preference of gid.

{''}
mode?: number

An octal literal. Defaults to 0o755 for directories and 0o644 for files.

mtime?: number

A number of seconds since the start of epoch. Avoid negative values. Defaults to the current time in seconds.

uid?: number

An octal literal.

{0o0}
uname?: string

An ASCII string. Should be used in preference of uid.

{''}