anylogger-debug
Advanced tools
Comparing version 0.8.0 to 0.9.0
{ | ||
"name": "anylogger-debug", | ||
"version": "0.8.0", | ||
"version": "0.9.0", | ||
"description": "Anylogger adapter for debug", | ||
"main": "anylogger-debug.js", | ||
"files": [ | ||
"anylogger-debug.js", | ||
"anylogger-debug.min.js", | ||
"anylogger-debug.spec.js", | ||
"browserified-debug-4.1.1.min.js" | ||
], | ||
"scripts": { | ||
"test": "mocha anylogger-debug.spec.js", | ||
"prepare": "npm run test" | ||
"build": "cross-env NODE_ENV=production node build.js", | ||
"prepare": "npm run test && npm run build", | ||
"test": "mocha anylogger-debug.spec.js" | ||
}, | ||
@@ -28,12 +35,15 @@ "repository": { | ||
"peerDependencies": { | ||
"anylogger": ">=0.19.0", | ||
"anylogger": ">=0.20.0", | ||
"debug": "^4.1.1" | ||
}, | ||
"devDependencies": { | ||
"anylogger": "^0.19.0", | ||
"anylogger": "^0.20.0", | ||
"chai": "^4.2.0", | ||
"cross-env": "^6.0.3", | ||
"debug": "^4.1.1", | ||
"gzip-size": "^5.1.1", | ||
"mocha": "^6.2.2", | ||
"sinon": "^8.0.1" | ||
"sinon": "^8.0.1", | ||
"uglify-js": "^3.7.3" | ||
} | ||
} |
@@ -1,2 +0,2 @@ | ||
# anylogger-debug | ||
# anylogger-debug <sub><sup>0.9.0</sup></sub> | ||
### Anylogger adapter for debug | ||
@@ -17,2 +17,25 @@ | ||
## Download | ||
* [anylogger-debug.js](https://unpkg.com/anylogger-debug@0.9.0/anylogger-debug.js) | ||
(fully commented source ~5kB) | ||
* [anylogger-debug.min.js](https://unpkg.com/anylogger-debug@0.9.0/anylogger-debug.min.js) | ||
(minified 184 bytes, gzipped ~[150](#gzip-size) bytes) | ||
## CDN | ||
*index.html* | ||
```html | ||
<script src="https://unpkg.com/anylogger@0.20.0/anylogger.min.js"></script> | ||
<script src="https://unpkg.com/anylogger-debug@0.9.0/browserified-debug-4.1.1.min.js"></script> | ||
<script src="https://unpkg.com/anylogger-debug@0.9.0/anylogger-debug.min.js"></script> | ||
<script>(function(){ // IIFE | ||
var log = anylogger('index.html') | ||
log.info('Logging is simple!') | ||
// to see logging, enable it, e.g.: | ||
// localStorage.setItem('debug', '*') | ||
})()</script> | ||
``` | ||
## Install | ||
@@ -88,3 +111,3 @@ | ||
© 2019 by [Stijn de Witt](https://stijndewitt.com). Some rights reserved. | ||
© 2020 by [Stijn de Witt](https://stijndewitt.com). Some rights reserved. | ||
@@ -95,1 +118,7 @@ | ||
Licensed under the [MIT Open Source license](https://opensource.org/licenses/MIT). | ||
## gzip-size | ||
The GZIP algorithm is available in different flavours and with different | ||
possible compression settings. The sizes quoted in this README have been | ||
measured using [gzip-size](https://npmjs.com/package/gzip-size) | ||
by [Sindre Sorhus](https://github.com/sindresorhus), your mileage may vary. |
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
21748
7
199
122
8
2
2