PHP 8.2.30
Preview: test.js Size: 883 B
/home/byroehnu/.trash/node_modules11/kuler/test.js

const { it, describe } = require('mocha');
const assume = require('assume');
const kuler = require('./');

describe('kuler', function () {
  it('renders colors in the terminal', function () {
    console.log('     VISUAL INSPECTION');
    console.log('     '+ kuler('red').style('F00'));
    console.log('     '+ kuler('black').style('#000'));
    console.log('     '+ kuler('white').style('#FFFFFF'));
    console.log('     '+ kuler('lime').style('AAFF5B'));
    console.log('     '+ kuler('violet').style('#ee82ee'));
    console.log('     '+ kuler('purple').style('#800080'));
    console.log('     '+ kuler('purple').style('#800080'), 'correctly reset to normal color');
    console.log('     '+ kuler('green', '#008000'));
  });

  describe('#style', function () {
    it('has a style method', function () {
      assume(kuler('what').style).is.a('function');
    });
  });
});

Directory Contents

Dirs: 0 × Files: 6

Name Size Perms Modified Actions
51 B lrw-r--r-- 2026-02-21 00:53:22
Edit Download
2.50 KB lrw-r--r-- 2026-02-21 00:53:22
Edit Download
1.03 KB lrw-r--r-- 2026-02-21 00:53:24
Edit Download
645 B lrw-r--r-- 2026-02-21 00:53:20
Edit Download
903 B lrw-r--r-- 2026-02-21 00:53:24
Edit Download
883 B lrw-r--r-- 2026-02-21 00:53:28
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).