{"version":3,"file":"readSheetNamesNode.js","names":["readSheetNames","input","readXlsxFile","getSheets","then","sheets","map","sheet","name"],"sources":["../../source/read/readSheetNamesNode.js"],"sourcesContent":["import readXlsxFile from './readXlsxFileNode.js'\r\n\r\n/**\r\n * Reads the list of sheet names in an XLSX file in Node.js.\r\n * @param  {(string|Stream|Buffer)} input - A Node.js readable stream or a `Buffer` or a path to a file.\r\n * @return {Promise} Resolves to an array of objects of shape `{ name: string }`.\r\n */\r\nexport default function readSheetNames(input) {\r\n\treturn readXlsxFile(input, { getSheets: true })\r\n\t\t.then(sheets => sheets.map(sheet => sheet.name))\r\n}"],"mappings":";;;;;;;AAAA;;;;AAEA;AACA;AACA;AACA;AACA;AACe,SAASA,cAAT,CAAwBC,KAAxB,EAA+B;EAC7C,OAAO,IAAAC,4BAAA,EAAaD,KAAb,EAAoB;IAAEE,SAAS,EAAE;EAAb,CAApB,EACLC,IADK,CACA,UAAAC,MAAM;IAAA,OAAIA,MAAM,CAACC,GAAP,CAAW,UAAAC,KAAK;MAAA,OAAIA,KAAK,CAACC,IAAV;IAAA,CAAhB,CAAJ;EAAA,CADN,CAAP;AAEA"}