JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 8
  • Score
    100M100P100Q43581F
  • License BSD

Handle adding warnings to docparse upload documents

Package Exports

  • docparse-upload-warning

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (docparse-upload-warning) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Docparse Upload Warning

Handle adding warnings to docparse upload documents. The upload should be an instance of docparse-upload.

Build Status Dependency Status Dependency tracking by David

Usage

var inspect = require('eyespect').inspector();
var createUpload = require('docparse-create-upload');
var addWarning = require('docparse-upload-warning');
createUpload(function(err, upload) {
  if (err) {
    inspect(err, 'error creating test upload')
    return;
  }
  var warningData = {
    message: 'dummy warning message',
    error: 'dummy warning error',
    fixed: false,
    upload: upload
  };
  addWarning(warningData, function(err, uploadWithWarning) {
    if (err) {
      inspect(err, 'error adding warning to upload')
      return;
    }
    inspect(uploadWithWarning.toObject(), 'upload after warning is added')
  });
});

Installation

npm install docparse-upload-warning