multipart/form-data normalize function for eight-track
multipart/form-data normalize function for eight-track.
This was built to support easier testing against servers that accept
Install the module with:
npm install eight-track-normalize-multipart
// Load in dependenciesvar normalizeMultipart = require'eight-track-normalize-multipart';var express = require'express';var eightTrack = require'eight-track';// Create eight-track server that is normalizes multipart/form-data boundariesexpressuseeightTrackurl: ''fixtureDir: 'directory/to/save/responses'normalizeFn: normalizeMultipartlisten1338;
normalizeMultipart as its
Function that has the signature as expected by eight-track's
normalizeFn parameter. It is designed to mutate
info but will not corrupt original
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint via grunt and test via
As of Jan 27 2014, Todd Wolfson has released this repository and its contents to the public domain.
It has been released under the UNLICENSE.