@opensearch-project/opensearch

v2.12.0
The official OpenSearch client for Node.js
opensearch opensearchDashboards mapping REST search client index

lint

eslint .

test

npm run lint && tap test/{unit,acceptance}/{*,**/*,**/**/*}.test.js && npm run test:types

lint:fix

eslint . --fix

build-esm

npx gen-esm-wrapper . index.mjs && eslint --fix index.mjs

test:unit

tap test/unit/{*,**/*,**/**/*}.test.js

test:types

tsd

license-checker

license-checker --production --onlyAllow='MIT;Apache-2.0;Apache1.1;0BSD;ISC;BSD-3-Clause;BSD-2-Clause'

test:acceptance

tap test/acceptance/*.test.js

test:coverage-90

tap test/{unit,acceptance}/{*,**/*,**/**/*}.test.js --coverage --branches=90 --functions=90 --lines=90 --statements=90 --nyc-arg="--exclude=api"

test:coverage-ui

tap test/{unit,acceptance}/{*,**/*,**/**/*}.test.js --coverage --coverage-report=html --nyc-arg="--exclude=api"

test:integration

node test/integration/index.js

test:coverage-report

tap test/{unit,acceptance}/{*,**/*,**/**/*}.test.js --coverage --branches=90 --functions=90 --lines=90 --statements=90 --nyc-arg="--exclude=api" && nyc report --reporter=text-lcov > coverage.lcov

test:integration:helpers

tap test/integration/helpers/*.test.js

test:integration:helpers-secure

tap test/integration/helpers-secure/*.test.js
npm i @opensearch-project/[email protected]

Metadata

Downloads