0.1.0 • Published 1 year ago

@shark0f/frog v0.1.0

Weekly downloads
-
License
GPLv3
Repository
github
Last release
1 year ago

@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);
}