MCPcopy
hub / github.com/axios/axios / bodyAsUtf8

Function bodyAsUtf8

tests/smoke/esm/tests/formData.smoke.test.js:53–55  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

51};
52
53const bodyAsUtf8 = (value) => {
54 return Buffer.isBuffer(value) ? value.toString('utf8') : String(value);
55};
56
57describe('formData compat (dist export only)', () => {
58 it('supports posting FormData instances', async () => {

Callers 1

Calls 1

toStringMethod · 0.80

Tested by

no test coverage detected