UNPKG

onix-parser

Version:

Parse ONIX 3.0 XML files and extract structured product data for publishing and digital books

15 lines (13 loc) 252 B
const { formatDate } = require('../lib/utils') const header = ({ x307: SentDateTime, sender: Sender }) => { return { sentDateTime: formatDate(SentDateTime.$t), senderName: Sender.x298.$t } } module.exports = { header }