New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

skizze

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

skizze

Node.js bindings to Skizze (https://github.com/skizzehq/skizze)

  • 0.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-33.33%
Maintainers
1
Weekly downloads
 
Created
Source

node-skizze

node-skizze are Node.js bindings for the Skizze database.

NOTE node-skizze is alpha software and still in heavy development.

Installation

$ npm install --save skizze

Example

var skizze = require('skizze');

var client = skizze.createClient("127.0.0.1:3596", { insecure: true });

client.createDomain("mydomain", function(err) {

	client.addToDomain("mydomain", ['alvin', 'simon', 'theodore'], function(err) {
		client.getCardinality("mydomain", function(err, card) {
			console.log(err, card);
		});
	});
});

Documentation

Classes

SkizzeClient

Members

sketchType : enum

Enum for Sketch type values.

snapshotState : enum

Enum for Snapshot state values.

Functions

createClient(address, options)SkizzeClient

Creates and returns a new client connection to Skizze

SkizzeClient

Kind: global class

new SkizzeClient()

Represents a connection to the Skizze database.

skizzeClient.createSnapshot(callback)

Request a snapshot to be taken.

Kind: instance method of SkizzeClient

ParamTypeDescription
callbackfunctionA callback to call when a reply is received.

skizzeClient.getSnapshot(callback)

Get details of the current or last snapshot.

Kind: instance method of SkizzeClient

ParamTypeDescription
callbackfunctionA callback to call with the details of the snapshot.

skizzeClient.listSketches(type, callback)

List Sketches of a specific type.

Kind: instance method of SkizzeClient

ParamTypeDescription
typenumberThe type of sketch to list.
callbackfunctionA callback to call with the list of Sketches.

skizzeClient.listDomains(callback)

List all domains.

Kind: instance method of SkizzeClient

ParamTypeDescription
callbackfunctionA callback to call with the list of Domains.

skizzeClient.listAll(callback)

List all Sketches.

Kind: instance method of SkizzeClient

ParamTypeDescription
callbackfunctionA callback to call with the list of Sketches.

skizzeClient.createDomain(name, callback)

Create a new domain with default settings for it's Sketches.

Kind: instance method of SkizzeClient

ParamTypeDescription
namestringThe name of the new domain.
callbackfunctionA callback to call with the newly created domain.

skizzeClient.createDomainWithProperties(name, sketches, callback)

Create a new domain with customized settings.

Kind: instance method of SkizzeClient

ParamTypeDescription
namestringThe name of the new domain.
sketchesObjectConfiguration for each sketch type.
callbackfunctionA callback to call with the newly created domain.

skizzeClient.deleteDomain(name, callback)

Delete a domain.

Kind: instance method of SkizzeClient

ParamTypeDescription
namestringThe name of the domain to delete.
callbackfunctionA callback to call when the operation is complete.

skizzeClient.getDomain(name, callback)

Get details of an existing domain.

Kind: instance method of SkizzeClient

ParamTypeDescription
namestringThe name of the domain to get.
callbackfunctionA callback to call with the domain details.

skizzeClient.createSketch(name, callback)

Create a new Sketch.

Kind: instance method of SkizzeClient

ParamTypeDescription
namestringThe name of the Sketch to create.
callbackfunctionA callback to call with the new Sketch.

skizzeClient.deleteSketch(name, callback)

Delete a Sketch.

Kind: instance method of SkizzeClient

ParamTypeDescription
namestringThe name of the sketch to delete.
callbackfunctionA callback to call when the operation is complete.

skizzeClient.getSketch(name, callback)

Get details of an existing sketch.

Kind: instance method of SkizzeClient

ParamTypeDescription
namestringThe name of the sketch to get.
callbackfunctionA callback to call with the sketch details.

skizzeClient.addToDomain(name, values, callback)

Add values to a domain.

Kind: instance method of SkizzeClient

ParamTypeDescription
namestringThe name of the domain.
valuesArray(string)The values to add to the domain.
callbackfunctionA callback to call when the operation is complete.

skizzeClient.addToSketch(name, values, callback)

Add values to a sketch.

Kind: instance method of SkizzeClient

ParamTypeDescription
namestringThe name of the sketch.
valuesArray(string)The values to add to the sketch.
callbackfunctionA callback to call when the operation is complete.

skizzeClient.getMembership(name, values, callback)

Query the sketch for membership (true/false) for the provided values.

Kind: instance method of SkizzeClient

ParamTypeDescription
namestringThe name of the sketch.
valuesArray(string)The values to query the membership of.
callbackfunctionA callback to call with the results.

skizzeClient.getMultiMembership(names, values, callback)

Query the sketches for membership (true/false) for the provided values.

Kind: instance method of SkizzeClient

ParamTypeDescription
namesArray(string)The names of the sketches to check.
valuesArray(string)The values to query the membership of.
callbackfunctionA callback to call with the results.

skizzeClient.getFrequency(name, values, callback)

Query the sketch for frequency of the provided values.

Kind: instance method of SkizzeClient

ParamTypeDescription
namestringThe name of the sketch.
valuesArray(string)The values to query the frequency of.
callbackfunctionA callback to call with the results.

skizzeClient.getMultiFrequency(names, values, callback)

Query the sketches for frequency of the provided values.

Kind: instance method of SkizzeClient

ParamTypeDescription
namesArray(string)The names of the sketches to check.
valuesArray(string)The values to query the frequency of.
callbackfunctionA callback to call with the results.

skizzeClient.getRankings(name, callback)

Query the sketch for top rankings.

Kind: instance method of SkizzeClient

ParamTypeDescription
namestringThe name of the sketch.
callbackfunctionA callback to call with the results.

skizzeClient.getMultiRankings(names, callback)

Query the sketches top rankings.

Kind: instance method of SkizzeClient

ParamTypeDescription
namesArray(string)The names of the sketches to check.
callbackfunctionA callback to call with the results.

skizzeClient.getCardinality(name, callback)

Query the sketch for cardinality.

Kind: instance method of SkizzeClient

ParamTypeDescription
namestringThe name of the sketch.
callbackfunctionA callback to call with the results.

skizzeClient.getMultiCardinality(names, callback)

Query the sketches for cardinality.

Kind: instance method of SkizzeClient

ParamTypeDescription
namesArray(string)The names of the sketches to check.
callbackfunctionA callback to call with the results.

sketchType : enum

Enum for Sketch type values.

Kind: global enum
Read only: true
Properties

NameTypeDefault
MEMBERSHIPnumberMEMBERSHIP
FREQUENCYnumberFREQUENCY
RANKINGSnumberRANKINGS
CARDINALITYnumberCARDINALITY

snapshotState : enum

Enum for Snapshot state values.

Kind: global enum
Read only: true
Properties

NameTypeDefault
PENDINGnumberPENDING
IN_PROGRESSnumberIN_PROGRESS
SUCCESSFULnumberSUCCESSFUL
FAILEDnumberFAILED

createClient(address, options) ⇒ SkizzeClient

Creates and returns a new client connection to Skizze

Kind: global function
Returns: SkizzeClient - - A SkizzeClient.

ParamTypeDescription
addressstringThe address of the Skizze server e.g. "127.0.0.1:3596"
optionsObjectOptions for configuring the client connection.
options.insecurebooleanWhether to create an insecure connection with the server.

TODO

  • Merge in testing
  • Hook up to Travis
  • Example
  • Versioning
  • npm

License

node-skizze is available under the Apache License, Version 2.0.

Authors

Keywords

FAQs

Package last updated on 31 Jan 2016

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