New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@moltin/importer

Package Overview
Dependencies
Maintainers
3
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@moltin/importer

A CLI to import data into Moltin via CSV

  • 2.1.1
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-50%
Maintainers
3
Weekly downloads
 
Created
Source

Import Moltin Products

Pre-requisites

  1. NodeJS (10.0.0 or newer)
  2. Npm (6.0.0 or newer)
  3. Redis

🛠 Setup

npm init @moltin/import
# or
npx @moltin/import
# or
npm install -g @moltin/import
moltin-import

⛽️ Usage

Once the import app has started, you can navigate to http://localhost:4567 in your web browser where you will see a neat web UI for observing the import. This UI runs using https://github.com/bee-queue/arena.

To begin the import, simply GET localhost:4000

If you are re-running an import, you should run redis-cli FLUSHALL on a new command line tab in order to make sure any old jobs are flushed from Redis.

⚡️ Internals

Two express apps are automatically started for you:

  1. Producer (port 4000). This is responsible for parsing your CSV and creating jobs for each of the products within it

  2. Consumer (port 3000) The consumer is responsible for reacting to incoming jobs. If they are jobs from the producer, it will check if those products exist already in Moltin. It will raise a new job for each product according to the result (update or insert). It will then process these new jobs itself and run the actual addition or updates in Moltin for you.

Keywords

FAQs

Package last updated on 08 Jul 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc