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

doofinder

Package Overview
Dependencies
Maintainers
1
Versions
198
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

doofinder

Javascript Client for Doofinder Search API - Beta

  • 0.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
88
decreased by-32.82%
Maintainers
1
Weekly downloads
 
Created
Source

js-doofinder

Doofinder NodeJS Client

This module is a NodeJS wrapper for Doofinder Search API 4

Installation

npm install doofinder

Usage


Doofinder = require "doofinder"

dfClient = new Doofinder "5886462410a02639acc5054bc464ec18", # hashid 
                         "eu1-dafdsafadsffsffafdasfsasd" # api key

Add query terms


dfClient.set_query("ipad")

Add some filters

# Some terms
dfClient.add_filter("category", ["pants", "skirts"])

# Adding a term
dfClient.add_filter_term("category", "t-shirts")
# filter terms will be: pants, skirts and t-shirts

# Adding a range_filter
dfClient.add_filter_range("price", 20, 500)
# prices from 20 to 500 monetary units

# Managing response and errors
callback = (err, res) ->
      console.log 'RESPONSE: ' + res
      console.log 'ERROR: ' + err

# Performing the API call
dfClient.search callback

Keywords

FAQs

Package last updated on 29 Jun 2015

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