-
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdemo.cjs
More file actions
22 lines (15 loc) · 674 Bytes
/
Copy pathdemo.cjs
File metadata and controls
22 lines (15 loc) · 674 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
const nekos = require( '../dist/index.cjs').default;
console.log('--- 1. Default (Random Cat) ---');
nekos();
console.log('\n--- 2. Specific ID (Cat #first_cat) ---');
nekos({ id: 'first_cat' });
console.log('\n--- 3. Specific ID with Gradient Colors ---');
nekos({ id: 'first_cat', colors: ['cyan', 'pink'] });
console.log('\n--- 4. Single Random Color ---');
nekos({ colors: 'RANDOM' });
console.log('\n--- 5. Rainbow Cat! ---');
nekos({ colors: 'RAINBOW' });
console.log('\n--- 6. Mixed Gradient with Random Color ---');
nekos({ colors: ['#FFFFFF', 'RANDOM'] });
console.log('\n--- 7. Non-existent ID (Fallback to Random) ---');
nekos({ id: 'non_existent_cat' });