3.5.2 • Published 4 months ago

@jsenv/log v3.5.2

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months 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

4 months ago

3.5.1

4 months ago

3.4.3

6 months ago

3.4.2

6 months ago

3.4.1

7 months ago

3.4.0

11 months ago

3.3.5

12 months ago

3.3.4

1 year ago

3.3.3

1 year ago

3.3.2

1 year ago

3.3.1

2 years ago

3.3.0

2 years ago

3.2.0

2 years ago

3.0.2

2 years ago

3.1.0

2 years ago

1.6.3

2 years ago

3.0.0

2 years ago

2.1.0

2 years ago

2.0.1

2 years ago

2.0.0

2 years ago

1.6.2

2 years ago

1.6.1

2 years ago

1.5.2

2 years ago

1.6.0

2 years ago

1.5.1

2 years ago

1.5.0

2 years ago

1.4.0

2 years ago

1.3.0

2 years ago

1.2.0

2 years ago

1.1.0

2 years ago

1.0.0

2 years ago