Releases: Module32/someapi-wrapper
Version 3.3.0 - Backward compatible new features
Version 3.3.0 of the someapi npm wrapper introduces a new theme system for the console to allow for error and warning messages that stand out, as well as data information and input. Basically, the values logged in the console can now support colors so that it is easier to spot them. New warnings and errors are in place.
Version 3.2.1 - Bug fixes and new features
Version 3.2.1 of the someapi npm wrapper patches some issues with the JSON requests where an undefined promise would be returned. Also, now, you will have to call the JSON requests like the following example:
Dog facts API
const { dogfacts } = require('@module64/someapi');
dogfacts().then((r) => { /* Do what you want to with it */ });Additionally, the error messages have been redesigned to be more visible and stand out in the terminal. Example:
Version 3.1.0 - Backward compatible new features
Version 3.1.0 of the someapi npm wrapper introduces new JSON requests that can be used for the JSON APIs such as dogfacts and mockify. No initial setup is required for the JSON requests-- you can simply import them and get to work with them.
Version 3.0.0 - Breaking changes w/ new features
Version 3.0.0 of the someapi npm wrapper introduces more API calls and functions. This means that instead of doing this (which is what you would do in previous versions):
const someapi = require('@module64/someapi');
console.log(someapi("https://cdn.discordapp.com/avatars/804777320123990108/4d4a200302ffc5319bedec152e6b1a6a.webp"));Users can instead now call various functions depending on what part of the Someapi Discord API they want to access. To demonstrate:
Invert API
const { invert } = require('@module64/someapi');
console.log(invert("https://cdn.discordapp.com/avatars/804777320123990108/4d4a200302ffc5319bedec152e6b1a6a.webp"));Greyscale API
const { greyscale } = require('@module64/someapi');
console.log(greyscale("https://cdn.discordapp.com/avatars/804777320123990108/4d4a200302ffc5319bedec152e6b1a6a.webp"));Wanted API
const { wanted } = require('@module64/someapi');
console.log(wanted("https://cdn.discordapp.com/avatars/804777320123990108/4d4a200302ffc5319bedec152e6b1a6a.webp"));You get the point.
(Note: if you prefer not to destructure the object, or the module in this case, you can also just import someapi by doing const someapi = require('@module64/someapi') and then calling the API you want by doing someapi.[the api you want].)
More API function calls coming soon, hopefully by version 3.3.0.
Version 2.2.0 - Backward compatible new features
Version 2.2.0 allows for asynchronous programs to use the Someapi wrapper.
