Sha256: d4de2e5c48d89e3c6666063ff45d1ffbe9dc975b7262903267c824b8f596910e

Contents?: true

Size: 1.07 KB

Versions: 35

Compression:

Stored size: 1.07 KB

Contents

'use strict'
// map types from key to human-friendly name
exports.name = new Map([
  ['0', 'File'],
  // same as File
  ['', 'OldFile'],
  ['1', 'Link'],
  ['2', 'SymbolicLink'],
  // Devices and FIFOs aren't fully supported
  // they are parsed, but skipped when unpacking
  ['3', 'CharacterDevice'],
  ['4', 'BlockDevice'],
  ['5', 'Directory'],
  ['6', 'FIFO'],
  // same as File
  ['7', 'ContiguousFile'],
  // pax headers
  ['g', 'GlobalExtendedHeader'],
  ['x', 'ExtendedHeader'],
  // vendor-specific stuff
  // skip
  ['A', 'SolarisACL'],
  // like 5, but with data, which should be skipped
  ['D', 'GNUDumpDir'],
  // metadata only, skip
  ['I', 'Inode'],
  // data = link path of next file
  ['K', 'NextFileHasLongLinkpath'],
  // data = path of next file
  ['L', 'NextFileHasLongPath'],
  // skip
  ['M', 'ContinuationFile'],
  // like L
  ['N', 'OldGnuLongPath'],
  // skip
  ['S', 'SparseFile'],
  // skip
  ['V', 'TapeVolumeHeader'],
  // like x
  ['X', 'OldExtendedHeader'],
])

// map the other direction
exports.code = new Map(Array.from(exports.name).map(kv => [kv[1], kv[0]]))

Version data entries

35 entries across 34 versions & 4 rubygems

Version Path
immosquare-cleaner-0.1.51 node_modules/tar/lib/types.js
immosquare-cleaner-0.1.50 node_modules/tar/lib/types.js
immosquare-cleaner-0.1.49 node_modules/tar/lib/types.js
immosquare-cleaner-0.1.48 node_modules/tar/lib/types.js
immosquare-cleaner-0.1.47 node_modules/tar/lib/types.js
immosquare-cleaner-0.1.46 node_modules/tar/lib/types.js
immosquare-cleaner-0.1.45 node_modules/tar/lib/types.js
immosquare-cleaner-0.1.44 node_modules/tar/lib/types.js
immosquare-cleaner-0.1.43 node_modules/tar/lib/types.js
immosquare-cleaner-0.1.42 node_modules/tar/lib/types.js
immosquare-cleaner-0.1.41 node_modules/tar/lib/types.js
immosquare-cleaner-0.1.40 node_modules/tar/lib/types.js
immosquare-cleaner-0.1.39 node_modules/tar/lib/types.js
immosquare-cleaner-0.1.38 node_modules/tar/lib/types.js
immosquare-cleaner-0.1.32 node_modules/tar/lib/types.js
immosquare-cleaner-0.1.31 node_modules/tar/lib/types.js
immosquare-cleaner-0.1.30 node_modules/tar/lib/types.js
immosquare-cleaner-0.1.29 node_modules/tar/lib/types.js
immosquare-cleaner-0.1.28 node_modules/tar/lib/types.js
immosquare-cleaner-0.1.27 node_modules/tar/lib/types.js