3.5.2 • Published 1 year ago

@jsenv/log v3.5.2

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Log npm package

This packages is used by jsenv to create beautiful logs in the console. It is available as a standalone package to be used in other contexts.

This package helps to:

  • add symbols via unicode
  • make dynamic logs
  • add color to logs

Task log example

(Click image to play the gif)

img

Code used to produce these logs:

import { createTaskLog } from "@jsenv/log";

const task = createTaskLog("Doing something");
setTimeout(() => {
  task.done();
}, 1_000);

Unicode example

img

Code used to produce these logs:

import { UNICODE } from "@jsenv/log";

console.log(`${UNICODE.COMMAND} cd dir/`);
console.log(`${UNICODE.DEBUG} debug`);
console.log(`${UNICODE.INFO} info`);
console.log(`${UNICODE.WARNING} warning`);
console.log(`${UNICODE.FAILURE} failure`);
console.log(`${UNICODE.OK} ok`);

Installation

npm install @jsenv/log
3.5.2

1 year ago

3.5.1

1 year ago

3.4.3

2 years ago

3.4.2

2 years ago

3.4.1

2 years ago

3.4.0

2 years ago

3.3.5

2 years ago

3.3.4

2 years ago

3.3.3

3 years ago

3.3.2

3 years ago

3.3.1

3 years ago

3.3.0

3 years ago

3.2.0

3 years ago

3.0.2

3 years ago

3.1.0

3 years ago

1.6.3

3 years ago

3.0.0

3 years ago

2.1.0

3 years ago

2.0.1

3 years ago

2.0.0

3 years ago

1.6.2

3 years ago

1.6.1

3 years ago

1.5.2

3 years ago

1.6.0

3 years ago

1.5.1

3 years ago

1.5.0

4 years ago

1.4.0

4 years ago

1.3.0

4 years ago

1.2.0

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago