This package has been deprecated

Author message:

Crayon.js Lite has been deprecated, see more here: https://github.com/crayon-js/crayon/releases/tag/2.0.0

@crayon.js/lite
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

🖍 Crayon.js 🪶 Lite


📚 About

Crayon.js Lite was created for users who won't use all of crayon.js features aka don't want to bloat their programs

It provides the same API as crayon.js however it removes some features

Installation

npm install @crayon.js/lite #yarn add @crayon.js/lite

📈 Differences

  • No CSS Keywords support.
    • Main thing about lite version is that it's stripped from css keywords, this means that:
      import crayon = require('@crayon.js/lite')
      
      // crayon.olive('This would throw an error')
      // crayon.keyword('olive')('This would throw an error also')
      crayon.red('This still works')
      crayon.bold('This still works')
      crayon.red.bold('This still works')
      crayon.rgb(255,135,0)('this still works')
  • Lower require times ~6/7ms -> ~4/5ms
  • 2-3x Lower package size

Learn more about crayon.js here

🤝 Contributing

Feel free to fork, add commits and pull requests

To-do List
  • Add jest coverage tests

📝 Licensing

This project is available under MIT License conditions.

Package Sidebar

Install

npm i @crayon.js/lite

Weekly Downloads

0

Version

1.1.0

License

MIT

Unpacked Size

17.5 kB

Total Files

15

Last publish

Collaborators

  • im-beast