carto-copy-stream

1.0.0 • Public • Published

carto-copy-stream

Import a table into carto using the new copy api, make sure the table exists

API

const copyStream = require('carto-copy-stream');
var writableStream = copyStream(user, key, table, headers, cb);

It takes:

  • the carto username (the one for the api, not for logging in)
  • api key
  • table name
  • array of headers
  • a callback for when it's done importing

it returns a writable object stream that takes geojson objects.

Readme

Keywords

none

Package Sidebar

Install

npm i carto-copy-stream

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

7.2 kB

Total Files

6

Last publish

Collaborators

  • cwmma