Socket
Socket
Sign inDemoInstall

kyoto-tycoon

Package Overview
Dependencies
0
Maintainers
0
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    kyoto-tycoon


Version published
Weekly downloads
3
decreased by-72.73%
Maintainers
0
Created
Weekly downloads
 

Readme

Source

node-kyoto-tycoon

KyotoTycoon client library for Node.js

Install

npm

npm install kyoto-tycoon

source

cp -r node-kyoto-tycoon ~/.node_libraries/kyoto-tycoon

Example

var KyotoTycoon = require('kyoto-tycoon').KyotoTycoon

var kt = new KyotoTycoon()
kt.set('key1', 'val1', function() {
    kt.get('key1', function(err ,data) {
        console.log(data)
        kt.end()
    })
})

// use JSDeferred
var kt3 = new KyotoTycoon({ deferred : true })
kt3.set('key3', 'val3').next(function() {
    return kt3.get('key3')
}).next(function(err, data) {
    console.log(data)
}).next(function() {
    kt3.end()
})

Utils

$ kt-cli
kt> set a 1
kt> set b 2
kt> get a
1
kt> get b
2
kt> cur_jump 1 key=a
kt> cur_get 1
{ key: 'a', value: '1' }
kt> cur_step 1
kt> cur_get 1
{ key: 'b', value: '2' }
kt> all
{ a: '1', b: '2' }
kt> keys
[ 'a', 'b' ]

node-kyoto-tycoon The MIT License Copyright (c) 2010 swdyh

lib/base64.js Copyright (C) 1999 Masanao Izumo http://www.onicos.com/staff/iz/amuse/javascript/expert/

lib/jsdeferred.js Copyright (c) 2007 cho45 ( www.lowreal.net )

FAQs

Last updated on 27 Feb 2011

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc