
Security News
Browserslist-rs Gets Major Refactor, Cutting Binary Size by Over 1MB
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
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 109 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.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.