Skip to content

lpinca/customer-import

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

customer-import

Build Status

This is just an example of how I would create a CLI utility to import customers from a stream of JSON documents representing customers.

Install

npm install -g lpinca/customer-import

Usage

$ customer-import [options] [<file>]

Options
  -c, --concurrency How many customers should be imported in parallel (20)
  -p, --path        The path used to match the customers (customers.*)

Examples
  $ customer-import customers.json
  $ customer-import < customers.json
  $ cat customers.json | customer-import

TODO

  • Better error handling

License

MIT

About

Import customers reading from a stream of JSON text

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published