1.1.3 • Published 3 years ago

csv-elasticsearch v1.1.3

Weekly downloads
-
License
Unlicense
Repository
-
Last release
3 years ago

Csv ElasticSearch

License: Unlicense Version CodeQL Build and release

Import a CSV file into ElasticSearch.

Installation

npm i --save csv-elasticsearch
# or
yarn add csv-elasticsearch

Usage

You need a CSV file and ElasticSearch.

import { importCsv } from "csv-elasticsearch";
import { Client } from "@elastic/elasticsearch";

(async () => {
  const result = await importCsv({
    client: new Client({ node: "http://localhost:9200" }),
    index: "my_index",
    filePath: "./data.csv",
  });

  console.log(result);
})();
1.1.3

3 years ago

1.1.2

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.0

3 years ago