Automattic / knox

S3 Lib
MIT License
1.74k stars 285 forks source link

Object knox has no method 'createClient' #272

Closed pxwise closed 9 years ago

pxwise commented 9 years ago

First time using knox v0.9.2, with code:

var knox = ('knox');

var client = knox.createClient({
    key: 'key',
    secret: 'secret-key',
    bucket: 'bucketname'
});

Correct key, secret key and bucketname were filled in.

Receive Object knox has no method 'createClient'.

danielsarsi commented 9 years ago

You load modules by calling require();, like this:

var knox = require('knox');
pxwise commented 9 years ago

Obvious mistake. thanks.