Nutritious Pumpkin Masses

    csv-elasticsearch
    TypeScript icon, indicating that this package has built-in type declarations

    1.1.3 • Public • Published

    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);
    })();

    Keywords

    none

    Install

    npm i csv-elasticsearch

    DownloadsWeekly Downloads

    5

    Version

    1.1.3

    License

    Unlicense

    Unpacked Size

    67.7 kB

    Total Files

    14

    Last publish

    Collaborators

    • rap2hpoutre