https://github.com/hurricaneinteractive/colour-logger
https://github.com/hurricaneinteractive/colour-logger
Last synced: 23 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/hurricaneinteractive/colour-logger
- Owner: HurricaneInteractive
- Created: 2020-10-15T03:50:54.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2020-10-16T23:09:55.000Z (over 5 years ago)
- Last Synced: 2025-02-23T06:05:16.820Z (over 1 year ago)
- Language: TypeScript
- Size: 152 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
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](https://tailwindcss.com/docs/customizing-colors#default-color-palette).
_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._
```js
import log from "@adrocodes/log"
log("some message", "red", { ...anyOtherData, it_is: "optional" })
```
You can implement this if your own project without this package.
```js
console.log("%c ", " color: red", {
optional: "extras",
})
```
## What to contribute?
Here are some details about how the package was created.
- 📦 [Parcel](https://parceljs.org/)
- 📝 [Jest](https://jestjs.io/)
- 💻 [TypeScript](https://www.typescriptlang.org/)
- 💅 [Prettier](https://prettier.io/)
### Commands
1. `start` - start the development process
2. `build` - build for production
3. `test` - run the tests once
4. `test: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](https://github.com/HurricaneInteractive) with ❤️