Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
tiny-crayon
Advanced tools
Terminal string styling
npm i tiny-crayon
const crayon = require('tiny-crayon')
console.log(
crayon.italic('hey'),
crayon.underline('hey'),
crayon.overline('hey'),
crayon.inverse('hey'),
crayon.strikethrough('hey')
)
console.log(
crayon.red(crayon.bold('hey')),
crayon.red('hey'),
crayon.redBright('hey'),
crayon.bgRed('hey'),
crayon.bgRedBright('hey')
)
console.log(
crayon.green(crayon.bold('hey')),
crayon.green('hey'),
crayon.greenBright('hey'),
crayon.bgGreen('hey'),
crayon.bgGreenBright('hey')
)
console.log(
crayon.blue(crayon.bold('hey')),
crayon.blue('hey'),
crayon.blueBright('hey'),
crayon.bgBlue('hey'),
crayon.bgBlueBright('hey')
)
console.log(Object.keys(crayon)) // Print all methods
It's only used to check if colors are available on that stream, that's it.
By default it checks on process.stdout
which is enough.
const { Crayon } = require('tiny-crayon')
const crayon = new Crayon(process.stderr)
console.error(crayon.green('hey'))
MIT
FAQs
Terminal string styling
The npm package tiny-crayon receives a total of 0 weekly downloads. As such, tiny-crayon popularity was classified as not popular.
We found that tiny-crayon demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.