Hierarchy

  • PaxTarHeader

Implements

Constructors

Accessors

  • get lastModified(): undefined | number
  • Converts modificationTime to standard javascript epoch time.

    Returns undefined | number

  • get modificationTime(): undefined | number
  • See PaxTarHeaderKey.MODIFICATION_TIME for more info

    Returns undefined | number

Methods

  • Returns

    the value parsed from the bytes of this header for the given key, or undefined if the key did not exist in the header.

    Parameters

    • key: string

    Returns undefined | string

  • Parse the value for the given key as a float.

    Returns

    undefined if the key does not exist or the parse operation fails.

    Parameters

    • key: string

    Returns undefined | number

  • Parse the value for the given key as an int.

    Returns

    undefined if the key does not exist or the parse operation fails.

    Parameters

    • key: string

    Returns undefined | number

  • Returns

    true if the value map of this parsed header contains the given key

    Parameters

    • key: string

    Returns boolean

  • Adds any necessary padding to the serialized output to ensure the length of the output is a multiple of SECTOR_SIZE.

    See toUint8Array() for more info.

    Returns Uint8Array

  • Wraps the given file name (if necessary) with the 'PaxHeader' metadata indicator. If the indicator already exists in the given file name, this does nothing.

    Parameters

    • fileName: string

    Returns string

Generated using TypeDoc