Skip to content

Image-core v1.0.6

Choose a tag to compare

@Sstudiosdev Sstudiosdev released this 24 Feb 05:07
· 41 commits to main since this release
e4d1c6a

in this new version we have fixed bugs in the code, there are also new images uploaded to our servers. In this version we have also added the new module, which is the NSFW module, which is content for people over 18 years old This new model also currently has 30 images but in the future there will be more.

Example

const { getRandomNsfwImageUrl } = require('imagen-core');

/**
 * Example function to demonstrate getting a random NSFW image URL.
 * It uses the getRandomNsfwImageUrl function to retrieve the URL and image name,
 * and then logs them to the console.
 */
async function exampleGetRandomNsfwImageUrl() {
  try {
    // Call the getRandomNsfwImageUrl function to get the URL and image name
    const { NsfwImageUrlFull, imageName } = await getRandomNsfwImageUrl();
    
    // Log the full NSFW image URL and image name to the console
    console.log('Full NSFW image URL:', NsfwImageUrlFull);
    console.log('Image name:', imageName);
  } catch (error) {
    console.error('Error getting the NSFW image:', error);
  }
}

// Run the example function
exampleGetRandomNsfwImageUrl();

npm created by Sstudios team SstudiosDev © SstudiosTeam

Contributors