labubu.js
v1.0.3
Published
a package to add labubu to your javascript application
Readme
labubu.js
A fun Node.js module to display Labubu ASCII art in random background colors, and open the Labubu shop in your browser.
Installation
npm install labubu.jsUsage
Display Labubu ASCII Art
const labubu = require('labubu.js');
console.log(labubu.open());This will print a colorful Labubu ASCII art to your terminal.
Open Labubu Shop
const labubu = require('labubu.js');
// In Node.js, shop() is async:
await labubu.shop();
// or
labubu.shop().then(() => { /* done */ });- In a browser environment, this opens the Labubu shop in a new tab.
- In Node.js, it opens the shop URL in your default browser (requires the
openpackage). The function is async in Node.js environments.
API
labubu.open()
Returns a string containing Labubu ASCII art with a random background color. Print it to your terminal with console.log().
labubu.shop()
Opens the Labubu shop URL in your browser. Works in both browser and Node.js environments. In Node.js, returns a Promise and should be awaited for best results.
License
MIT
