UNPKG

@ericblade/mws-simple

Version:

Modern, full featured nodejs Amazon MWS API in ~150 lines of code

10 lines (9 loc) 335 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = (content) => { if (!content) return 'application/x-www-form-urlencoded; charset=utf-8'; if (content.slice(0, 5) === '<?xml') return 'text/xml'; return 'text/tab-separated-values; charset=iso-8859-1'; };