Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@dekproject/elasticsearch

Package Overview
Dependencies
Maintainers
2
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dekproject/elasticsearch

Elasticsearch interface plugin for DEK

  • 1.1.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
Maintainers
2
Weekly downloads
 
Created
Source

@dekproject/elasticsearch

Elasticsearch interface plugin for DEK

What does this plugin do?

  • Control configuration for connection to Elasticsearch in production development mode in a simplified way with dotenv
  • Performs connection implementation along the lines ES6 being pre requirement to start the project

Instalation

To install the bootstrap we recommend using the CLI

$ yarn add @dekproject/elasticsearch --save
$ nano .env

In the .env file add the following settings

ELASTICSEARCH_VERSION=7
ELASTICSEARCH_HOST=http://localhost:9200

For applications with cluster usage in Elasticsearch

ELASTICSEARCH_VERSION=7
ELASTICSEARCH_HOST=http://localhost:9200,http://localhost:9201

Usage

Using in the standard DEK skeleton

import { $, app, elasticsearch } from "@dekproject/scope";

$.wait("elasticsearch").then(() => {
    elasticsearch.cat.health({}, (err,resp,status) => {
        console.log(resp);
    });
});

Keywords

FAQs

Package last updated on 04 Aug 2020

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