@shark0f/frog
v0.1.0
Published
The shark0.com SDK for Node.js.
Downloads
5
Readme
@shark0f/frog
The shark0.com SDK for Node.js.
Usage
/**
* apiKey: string;
* The key used to identify your project.
* You can find this key in the project settings.
*
* password: string;
* The password used for the encryption.
*/
const frog = new Frog({ apiKey: 'abc...', password: 'abc...' });
const log = new frog.Area('sign_up');
try {
await insertUserIntoDatabase(user);
log.info('A new user signed up! Their email is', user.email);
} catch (error) {
log.error('An error occured :(', error);
}