
Product
Secure Your AI-Generated Code with Socket MCP
Socket MCP brings real-time security checks to AI-generated code, helping developers catch risky dependencies before they enter the codebase.
elasticsearch-index-migrator
Advanced tools
This repository contains scripts for managing Elasticsearch index migrations using the `elasticsearch-index-migrator` tool.
This repository contains scripts for managing Elasticsearch index migrations using the elasticsearch-index-migrator
tool.
yarn add elasticsearch-index-migrator
The cli options
is used to configure and provide options for the Elasticsearch migration scripts. Below is a table
that describes each option:
Property | Description |
---|---|
command | Specifies the command to be executed (e.g., createEmptyMigration or runMigrations ). |
migrationsDir | Specifies the directory where migration files are stored. |
migrationName | Specifies the name of the new migration. |
migrationFileExtension | Specifies the file extension for migration files (e.g., .js , .ts ). |
filePatterns | An array of file patterns used to identify migration files within the migrationsDir (default: *.js , *.ts ). |
Add these command to package.json
file:
"elasticsearch-create-migration": "node -r ts-node/register -r tsconfig-paths/register ./node_modules/.bin/elasticsearch-index-migrator --command=createEmptyMigration --migrationsDir=./elasticsearch-migrations --migrationName=Test",
"elasticsearch-run-migrations": "node -r ts-node/register -r tsconfig-paths/register ./node_modules/.bin/elasticsearch-index-migrator --command=runMigrations --migrationsDir=./elasticsearch-migrations"
This package uses these environment variables to pass Elasticsearch authorizations by default:
process.env.ELASTICSEARCH_NODE_URL;
process.env.ELASTICSEARCH_PASSWORD;
process.env.ELASTICSEARCH_USERNAME;
FAQs
This repository contains scripts for managing Elasticsearch index migrations using the `elasticsearch-index-migrator` tool.
The npm package elasticsearch-index-migrator receives a total of 142 weekly downloads. As such, elasticsearch-index-migrator popularity was classified as not popular.
We found that elasticsearch-index-migrator demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Product
Socket MCP brings real-time security checks to AI-generated code, helping developers catch risky dependencies before they enter the codebase.
Security News
As vulnerability data bottlenecks grow, the federal government is formally investigating NIST’s handling of the National Vulnerability Database.
Research
Security News
Socket’s Threat Research Team has uncovered 60 npm packages using post-install scripts to silently exfiltrate hostnames, IP addresses, DNS servers, and user directories to a Discord-controlled endpoint.