IMPORTANT: elasticsearch.js has been replaced by the new Elasticsearch JavaScript client. We strongly advise you to migrate to the new client. To learn more, see the migration guide.
NPM
edit
IMPORTANT: This documentation is no longer updated. Refer to Elastic's version policy and the latest documentation.
NPM
editIf you use npm to manage your dependencies, then just run:
npm install elasticsearch-browser