Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

loglevel-plugin-prefix

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

loglevel-plugin-prefix - npm Package Compare versions

Comparing version 0.5.2 to 0.5.3

6

lib/loglevel-plugin-prefix.js

@@ -28,9 +28,9 @@ (function (root, factory) {

template: '[%t] %l:',
timestampFormatter: function timestampFormatter(date) {
timestampFormatter: function (date) {
return date.toTimeString().replace(/.*(\d{2}:\d{2}:\d{2}).*/, '$1');
},
levelFormatter: function levelFormatter(level) {
levelFormatter: function (level) {
return level.toUpperCase();
},
nameFormatter: function nameFormatter(name) {
nameFormatter: function (name) {
return name || 'root';

@@ -37,0 +37,0 @@ }

@@ -25,3 +25,3 @@ {

"license": "MIT",
"version": "0.5.2",
"version": "0.5.3",
"main": "./lib/loglevel-plugin-prefix",

@@ -28,0 +28,0 @@ "scripts": {

@@ -56,8 +56,5 @@ # loglevel-plugin-prefix

### Browser directly
Download [production version](https://raw.githubusercontent.com/kutuluk/loglevel-plugin-prefix/master/dist/loglevel-plugin-prefix.min.js)
and copy to your project folder
```html
<script src="loglevel.min.js"></script>
<script src="loglevel-plugin-prefix.min.js"></script>
<script src="https://unpkg.com/loglevel/dist/loglevel.min.js"></script>
<script src="https://unpkg.com/loglevel-plugin-prefix/dist/loglevel-plugin-prefix.min.js"></script>

@@ -64,0 +61,0 @@ <script>

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc