1.1.3 • Published 2 months ago

rubiks v1.1.3

Weekly downloads
-
License
MIT
Repository
github
Last release
2 months ago

Rubiks

deno module NPM Version

Rubiks is a 0 dependency extendable logging library for modern applications.

import { rubiks, warn, withDates } from "rubiks";

rubiks()
    .log("Rubiks can do normal logging")
    .log("Rubiks can also use custom levels, which allow changing the action", warn)
    .warn("It also has some included methods for simplicity")
    .use(withDates)
    .log("You can also use modifiers, that modify all logs of this instance");

you can also easily create your own levels...

import { rubiks } from "rubiks";

function customLevel(self, content) {
    console.log(`This is the content: ${content}`)
}

rubiks()
    .log("hello!", customLevel)

or your own modifiers...

import { rubiks } from "rubiks";

function customModifier(self) { 
    return (self, content) => {
        self.format += `${content} `
    }
}

rubiks()
    .use(customModifier)
    .log("testing")
    .error("more")
1.1.3

2 months ago

1.1.1

4 months ago

1.0.1

5 months ago

1.0.0

5 months ago

0.9.0

5 months ago

0.8.2

5 months ago

0.8.1

5 months ago

0.8.0

5 months ago

0.7.1

5 months ago

0.7.0

5 months ago

0.6.0

5 months ago

0.5.1

5 months ago

0.4.0

5 months ago

0.3.0

5 months ago

0.2.3

5 months ago

0.2.2

5 months ago

0.2.1

5 months ago

0.2.0

5 months ago

0.1.0

5 months ago

0.0.2

5 months ago

0.0.1

5 months ago