dromo-uploader-js

Easy to use data (CSV, TSV, Excel) importer

Usage no npm install needed!

<script type="module">
  import dromoUploaderJs from 'https://cdn.skypack.dev/dromo-uploader-js';
</script>

README

dromo

NPM JavaScript Style Guide

You can view a live demo here

Install

To get add Dromo to your own project:

npm install --save dromo-uploader-js

Usage

Check out our developer documentation here

<script type="text/javascript">
  const fields = [
    { 
      label: "Name", 
      key: "name" 
    },
    {
      label: "Email",
      key: "email_address"
    }
  ];

  const settings = {
    importIdentifier: "Contacts"
  };

  const user = {
    id: "1",
    name: "Jane Doe",
    email: "jane@dromo.io",
    companyId: "Dromo",
    companyName: "12345"
  }

  const dromo = new DromoUploader("LICENSE_KEY", fields, settings, user);

  dromo.onResults(function (response) {
    // Do something with the data here
    return "Done!";
  });
</script>

<div id="root">
  <button onclick="dromo.open()">Open Dromo</button>
</div>