• File: index.js
  • Full Path: /var/www/nodejs/callDir/node_modules/formidable/src/index.js
  • Date Modified: 06/03/2024 5:11 PM
  • File size: 754 bytes
  • MIME-type: text/x-java
  • Charset: utf-8
import PersistentFile from './PersistentFile.js';
import VolatileFile from './VolatileFile.js';
import Formidable, { DEFAULT_OPTIONS } from './Formidable.js';



// make it available without requiring the `new` keyword
// if you want it access `const formidable.IncomingForm` as v1
const formidable = (...args) => new Formidable(...args);
const {enabledPlugins} = DEFAULT_OPTIONS;

export default formidable;
export {
  PersistentFile as File,
  PersistentFile,
  VolatileFile,
  Formidable,
  // alias
  Formidable as IncomingForm,

  // as named
  formidable,


  // misc
  DEFAULT_OPTIONS as defaultOptions,
  enabledPlugins,  
};

export * from './parsers/index.js';
export * from './plugins/index.js';
export * as errors from './FormidableError.js';