Socket
Socket
Sign inDemoInstall

svelte-algolia

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

svelte-algolia

Algolia plugin for Svelte


Version published
Weekly downloads
14
decreased by-53.33%
Maintainers
1
Weekly downloads
 
Created
Source

Banner

svelte-algolia

Usage

  1. Install with yarn or npm

    yarn add -D svelte-algolia
    
    npm i -D svelte-algolia
    
  2. Create an algoliaConfig:

    const algoliaConfig = {
      appId: secrets.algoliaAppId,
      apiKey: secrets.algoliaAdminKey,
      partialUpdates: true,
      indices: [
        { name: `pokedex`, getData: pokemonDataLoader },
        { name: `hitchHikersGuide`, getData: guideGetter },
      ],
    }
    
  3. Pass your config to the indexAlgolia export from this package:

    import { indexAlgolia } from 'svelte-algolia'
    
    indexAlgolia(algoliaConfig)
    

Contribute

PRs are welcome but best open an issue first to discuss any changes.

Keywords

FAQs

Package last updated on 29 Oct 2020

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc