Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

addsearch-js-client

Package Overview
Dependencies
Maintainers
1
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

addsearch-js-client

AddSearch API JavaScript client

  • 0.1.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2.3K
increased by8.72%
Maintainers
1
Weekly downloads
 
Created
Source

AddSearch Search API Client for JavaScript

AddSearch is a hosted search platform for all your web content. This API Client lets you easily use the AddSearch Search API from your JavaScript code. This client works on web browsers and with Node.js.

Quick Start

// Create client with your 32-character SITEKEY
var client = new AddSearchClient('YOUR PUBLIC SITEKEY');

// Callback function
var cb = function(res) {
  // Print results to console
  console.log(res);
}

// Execute search. Callback function cb will be called with search results
client.search('keyword', cb);

// Get search suggestions for a keyword
client.suggest('api', cb);

Browser support

The client is tested on following browsers

  • Chrome
  • Firefox
  • Edge
  • Safari 6.1+
  • Internet Explorer 10+

Development

To modify this client library, clone this repository to your computer and execute following commands.

Install dependencies

npm install

Run tests

npm test

Build

To build the client, run:

npm run build

Built bundle is saved under the dist/ folder

Keywords

FAQs

Package last updated on 21 May 2019

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