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

Function bodyAsUtf8

tests/smoke/cjs/tests/formData.smoke.test.cjs:56–58  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

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

Callers 1

Calls 1

toStringMethod · 0.80

Tested by

no test coverage detected