@studiowebux/search

5.0.0 • Public • Published

Search Plugin

npm install --save @studiowebux/search

Environment variables

ZINC_ENDPOINT="http://YOUR_IP:4080"
ZINC_AUTHENTICATION="user:password"

Usage

const { searchDocument, formatZincResponse } = require("../src/index");

// ...

app.search("/:term", async (req, res) => {
  const response = await searchDocument(
    "webuxlab",
    process.env.ZINC_ENDPOINT,
    process.env.ZINC_AUTHENTICATION,
    "webuxlab.com"
  );

  return res.json(formatZincResponse(response));
});

// ...

See tests/ for examples.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 5.0.0
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 5.0.0
    2
  • 4.25.1
    1

Package Sidebar

Install

npm i @studiowebux/search

Weekly Downloads

3

Version

5.0.0

License

MIT

Unpacked Size

7.03 kB

Total Files

7

Last publish

Collaborators

  • tgingras