Package Exports
- typesense
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (typesense) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
typesense-js

Javascript client library for accessing the Typesense HTTP API. Follows the API spec here.
This library can be used both on the server-side and on the client-side. The library's source is in ES6 and during build time, we transpile it to ES5 and generate two artifacts - one that can be used on the server-side and another that uses Browserify and can be used on the client side.
Installation
Install via npm
$ npm install typesenseInclude the minified JS file for use in the browser directly
<script src="dist/typesense.min.js"></script>Usage
Read the documentation here: https://typesense.org/api/
Here are some examples that show you how the client works: doc/examples
Tests are also a good place to know how the the library works internally: test
Note: When using this library client-side (in a browser), please be sure to use the search-only-api-key instead of the master API key.
Compatibility
| Typesense Server | typesense-js |
|---|---|
| <= v0.11 | <= v0.3.0 |
| >= v0.12 | >= v0.4.0 |
Development
After checking out the repo, run npm install to install dependencies. Then run npm test to run the linter and tests.
To release a new version, run npm run build and then npm publish
Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/typesense/typesense-js.