Skip to content

mattmcneeney/keyvalue-xyz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

keyvalue-xyz

An unnoficial keyvalue.xyz client.

Usage

var kvs = require('keyvalue-xyz');

// Creating a new token
kvs.createToken(key, function(error, token) {
    // error: any error that has occurred
    // token: the token that can be used to fetch and update the specified key
});

// Setting the value for a key
kvs.setValueForKey(token, key, value, function(error) {
    // error: any error that has occurred
});

// Setting the JSON value for a key
kvs.setJSONForKey(token, key, jsonValue, function(error) {
    // error: any error that has occurred
});

// Getting the value for a key
kvs.getValueForKey(token, key, function(error, value) {
    // error: any error that has occurred
    // value: the value for the provided key
});

// Getting the JSON value for a key
kvs.getJSONForKey(token, key, function(error, value) {
    // error: any error that has occurred
    // value: the JSON value for the provided key
});

Building / Testing

  1. Checkout this repository
  2. npm install
  3. npm test

About

Unofficial keyvalue.xyz client

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published