0.3.1 • Published 3 years ago
@u32e1/frog v0.3.1
@u32e1/frog
The u32e1 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);
}