Setup

JavaScript
TypeScript
JavaScript
// File Name - example.js
const colour = require('cdcolours');
console.log(colour('Hello World', { textColour: 'green', backgroundColour: 'cyan'}));
TypeScript
// File Name - example.ts
import colour from 'cdcolours';
console.log(colour('Hello World', { textColour: 'green', backgroundColour: 'cyan'}));