
Security News
TC39 Advances 11 Proposals for Math Precision, Binary APIs, and More
TC39 advances 11 JavaScript proposals, with two moving to Stage 4, bringing better math, binary APIs, and more features one step closer to the ECMAScript spec.
elasticsearch-watcher
Advanced tools
Watcher API plugin for the elasticsearch.js client.
elasticsearch-watcher is available on NPM:
npm install elasticsearch elasticsearch-watcher
bower:
bower install elasticsearch elasticsearch-watcher
Or by simply downloading elasticsearch-watcher.js and including it in your project.
NOTE: The elasticsearch-watcher.js file uses a UMD wrapper to greater compatibility and exports a global ElasticsearchWatcher
variable when neither AMD or Common.js module systems are detected.
The elasticsearch-watcher API is a plugin for the elasticsearch.js client. To mix it into an instance of Client
we pass the entire module like so:
var elasticsearch = require('elasticsearch');
var elasticsearchWatcher = require('elasticsearch-watcher');
var client = new elasticsearch.Client({
plugins: [ elasticsearchWatcher ]
});
Doing this will add the client.watcher
api to the client instance:
client.watcher.getWatch({ id: 42 })
.then(function (resp) {
...
});
Documentation for the watcher api is available at elastic/elasticsearch-watcher-js/docs/api.asciidoc for the time being.
Copyright 2015 Elasticsearch
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
FAQs
Watcher API plugin for the JavaScript elasticsearch client
We found that elasticsearch-watcher 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
TC39 advances 11 JavaScript proposals, with two moving to Stage 4, bringing better math, binary APIs, and more features one step closer to the ECMAScript spec.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.