README
Colour Logger
Definitely recommend using this in a browser environment, don't know what will happen in a Node environment.
A very basic package to console.log
things in colourful ways. Colours are based on the default tailwind colours.
Sorry the package is scoped to a person and not a grouping of packages like babel. This is just for my own fun and experimenting.
import log from "@adrocodes/log"
log("some message", "red", { ...anyOtherData, it_is: "optional" })
You can implement this if your own project without this package.
console.log("%c <your message>", "<css - eg> color: red", {
optional: "extras",
})
What to contribute?
Here are some details about how the package was created.
- 📦 Parcel
- 📝 Jest
- 💻 TypeScript
- 💅 Prettier
Commands
start
- start the development processbuild
- build for productiontest
- run the tests oncetest:watch
- run the tests in watch mode
Description
A very basic (by design) setup for creating npm packages. Edit the index.ts
file with your functionality, write some tests if you want, build
and ship it. Bundles using Parcel, meaning you can extend it if you need to or just leave it as is.
Made by adro.codes with ❤️