Skip to content

Orago/status-responses

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@orago/status

Usage:

import { success, err } from '@orago/status';

success('Everything works!', { cat: 'meow' });
// Result =>
{
	response: 'Everything works!',
	status: true,
	cat: 'meow'
}



err('Something went wrong!', { userID: 5 }); 
// Result =>
{
	response: 'Something went wrong!',
	status: false,
	userID: 5
}

success({ something: 'random' }, { dog: 'woof' });
// Result =>
{
	response: { something: 'random' },
	status: true,
	dog: 'woof'
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published