@magic/log
Advanced tools
Comparing version 0.1.1 to 0.1.2
{ | ||
"name": "@magic/log", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"author": "Wizards & Witches", | ||
"description": "enhanced console.log", | ||
"license": "AGPL-3.0", | ||
"homepage": "https://magic.github.io/test", | ||
"homepage": "https://magic.github.io/log", | ||
"main": "src/index.mjs", | ||
@@ -39,3 +39,3 @@ "module": "src/index.mjs", | ||
"@magic/core": "github:magic/core", | ||
"@magic/test": "0.1.18" | ||
"@magic/test": "0.1.21" | ||
}, | ||
@@ -42,0 +42,0 @@ "dependencies": { |
@@ -18,4 +18,4 @@ # @magic/log | ||
[npm-url]: https://www.npmjs.com/package/@magic/log | ||
[travis-image]: https://api.travis-ci.org/magic/log.svg?branch=master | ||
[travis-url]: https://travis-ci.org/magic/log | ||
[travis-image]: https://img.shields.io/travis/com/magic/log/master | ||
[travis-url]: https://travis-ci.com/magic/log | ||
[appveyor-image]: https://img.shields.io/appveyor/ci/magic/log/master.svg | ||
@@ -82,2 +82,12 @@ [appveyor-url]: https://ci.appveyor.com/project/magic/log/branch/master | ||
log.annotate('Annotate this message') | ||
// return process.hrtime to use in log.timeTaken | ||
const start = log.hrtime() | ||
// get delta between one hrtime and another | ||
const delta = log.hrtime(start) | ||
// print the s, ms or ns since start | ||
log.timeTaken(start, 'before', 'after') | ||
// logs 'before xns after' | ||
``` | ||
@@ -96,1 +106,4 @@ | ||
0.1.0-cjs was preferred, but is deprecated. | ||
#### v0.1.2 | ||
add log.hrtime and log.timeTaken |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
43366
218
107