Make Girls Moe
Installation
npm i make.girls.moe
Make an AI generated waifu with specific characteristics.
Data
Function | Description |
---|---|
generateWaifu |
Generate an ai generated waifu (base64). |
options |
Get all the character options/characteristics to generate a waifu. |
Examples
Await/Async example
const { generateWaifu } = require('make.girls.moe')
async function generateDefault() {
await generateWaifu(res => {
require('fs').writeFile("waifu.png", res[0].images.replace(/^data:image\/png;base64,/, ""), 'base64', function (err) {
if (err) console.log(err)
})
})
}
generateDefault();
returns a waifu in a file called waifu.png, to get the pure base64, you can just add:
console.log(res[0].images) // For HTML
console.log(res[0].images.replace(/^data:image\/png;base64,/, "")) // For fs etc.
Await/Async example
const { generateWaifu } = require('make.girls.moe')
async function generateCustom() {
await generateWaifu({
hairColor: "White",
hairStyle: "Long Hair",
eyeColor: "Aqua",
darkSkin: false,
blush: false,
smile: true,
openMouth: false,
hat: false,
ribbon: false,
glasses: false
}, res => {
require('fs').writeFile("waifu.png", res[0].images.replace(/^data:image\/png;base64,/, ""), 'base64', function (err) {
if (err) console.log(err)
})
})
}
generateCustom();
returns a waifu with the specified options in a file called waifu.png. If the options aren't valid, it stays at the default specification of the site.
Await/Async example
const { options } = require('make.girls.moe')
async function getOptions() {
await options(res => {
console.log(res)
})
}
getOptions();
returns:
[
{
hairColor: [
'Blonde', 'Brown',
'Black', 'Blue',
'Pink', 'Purple',
'Green', 'Red',
'Silver', 'White',
'Orange', 'Aqua',
'Grey'
]
},
{
hairStyle: [
'Long Hair',
'Short Hair',
'Twin Tail',
'Drill Hair',
'Ponytail'
]
},
{
eyeColor: [
'Blue', 'Red',
'Brown', 'Green',
'Purple', 'Yellow',
'Pink', 'Aqua',
'Black', 'Orange'
]
}
...
]
TODO
- Add advanced options