MCPcopy
hub / github.com/node-formidable/formidable / getForm

Function getForm

test/unit/formidable.test.js:20–22  ·  view source on GitHub ↗
(name, opts)

Source from the content-addressed store, hash-verified

18}
19
20function getForm(name, opts) {
21 return name === 'formidable' ? formidable(opts) : new mod[name](opts);
22}
23function makeHeader(originalFilename) {
24 return `Content-Disposition: form-data; name="upload"; filename="${originalFilename}"`;
25}

Callers 1

formidable.test.jsFile · 0.85

Calls 1

formidableFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…