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

@geek/logger

Package Overview
Dependencies
Maintainers
2
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@geek/logger - npm Package Compare versions

Comparing version 1.0.8 to 1.0.9

22

config/formats.js
/* eslint-disable eqeqeq */
/* eslint-disable no-eq-null */
const ansiColors = require('ansi-colors');
const JSONC = require('@geek/jsonc');

@@ -123,3 +124,3 @@ // eslint-disable-next-line no-unused-vars

exports.debug_message_color = ({ namespace, timestamp = new Date().toISOString(), message = '' }) => {
exports.debug_message_color = ({ namespace, timestamp = new Date().toISOString(), message = '' } = {}) => {
const ns_color = getNamespaceColor(namespace);

@@ -129,3 +130,8 @@ return `${reset}${ns_color(namespace)} ${gray(message)} ${ns_color(timestamp)}`;

exports.debug_message_args_color = ({ namespace, timestamp = new Date().toISOString(), message = '', ...args } = {}) => {
const ns_color = getNamespaceColor(namespace);
return `${reset}${ns_color(namespace)} ${gray(message)} ${ns_color(timestamp)}\n${JSONC.colorify(args, null, 2)}`;
};
exports.timestamp_message_color = ({ timestamp = new Date().toISOString(), message = '' }) => {

@@ -170,3 +176,3 @@ return `${reset}${gray.dim(timestamp)} - ${message}`;

exports.events_color_simple = (args = {}) => {
exports.events_color_simple2 = (args = {}) => {
const clone = { ...args };

@@ -182,4 +188,16 @@ const { message = '' } = clone;

return exports.timestamp_message_color(clone);
};
exports.events_color_simple = (args = {}) => {
const clone = { ...args };
const { message = '' } = clone;
if (![ undefined, null ].includes(args.event_value)) {
clone.message = `${red.bold('Event Generated:')} ${cyan(message)} -- ${green(args.event_value)}`;
} else {
clone.message = `${red.bold('Event Generated:')} ${cyan(message)}`;
}
return exports.debug_message_color(clone);
};

15

package.json
{
"name": "@geek/logger",
"version": "1.0.8",
"version": "1.0.9",
"description": "Logging module for Node.js and Axway Titanium",

@@ -9,5 +9,5 @@ "main": "Logger.js",

"prep": "npm install --ignore-scripts && npm run list",
"prepublishOnly": "git pull && bump",
"prepublishOnly": "git pull && bump release",
"lint": "eslint --fix .",
"test": "echo \"no test specified\" && exit 0"
"test": "npm run prep"
},

@@ -52,6 +52,6 @@ "author": {

"devDependencies": {
"@titanium/eslint-config": "0.0.17",
"eslint": "^7.10.0",
"@titanium/eslint-config": "0.0.18",
"eslint": "^7.11.0",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-jsdoc": "^30.6.3",
"eslint-plugin-jsdoc": "^30.6.4",
"eslint-plugin-promise": "^4.2.1",

@@ -62,3 +62,4 @@ "fs-extra": "^9.0.1",

"peerDependencies": {
"ansi-colors": "^4.1.1"
"ansi-colors": "^4.1.1",
"@geek/jsonc": "^0.0.13"
},

@@ -65,0 +66,0 @@ "dependencies": {},

@@ -1,3 +0,6 @@

# @geek/logger
# @geek/logger <sup><sup><sub><a name="brenton-house" href="#brenton-house">🚀</a></sub></sup></sup>
![GitHub stars](https://img.shields.io/github/stars/brentonhouse/geek-logger?style=social)
![GitHub forks](https://img.shields.io/github/forks/brentonhouse/geek-logger?style=social)
![GitHub watchers](https://img.shields.io/github/watchers/brentonhouse/geek-logger?style=social)
[![@geek/logger](https://img.shields.io/npm/v/@geek/logger.png)](https://www.npmjs.com/package/@geek/logger)

@@ -8,15 +11,19 @@ [![Dependabot Status](https://api.dependabot.com/badges/status?host=github&repo=brentonhouse/geek-logger)](https://dependabot.com)

* [📝 Description](#-description)
* [🚀 Getting Started](#-getting-started)
* [✨Features](#features)
* [📚Learn More](#learn-more)
* [📣 Feedback](#-feedback)
* [📓 &nbsp; Description](#--description)
* [🚀 &nbsp; Getting Started](#--getting-started)
* [✨ &nbsp; Features](#--features)
* [🎓 &nbsp; Learn More](#--learn-more)
* [📚 &nbsp; Related projects](#--related-projects)
* [🎟️ &nbsp; Modules for Node.js](#️--modules-for-nodejs)
* [🎟️ &nbsp; Modules for Node.js and Titanium Mobile](#️--modules-for-nodejs-and-titanium-mobile)
* [📣 &nbsp; Feedback](#--feedback)
* [Follow Brenton House](#follow-brenton-house)
* [©️ Legal](#️-legal)
## 📝 Description
## 📓 &nbsp; Description
Logging module for Node.js and Axway Titanium
## 🚀 Getting Started
## 🚀 &nbsp; Getting Started

@@ -29,3 +36,3 @@ 1. Install `@geek/logger` in root of project

## ✨Features
## ✨ &nbsp; Features

@@ -36,3 +43,3 @@

## 📚Learn More
## 🎓 &nbsp; Learn More

@@ -42,6 +49,40 @@ - [@geek/logger GitHub Repo](https://github.com/brentonhouse/geek-logger)

## 📣 Feedback
### 📚 &nbsp; Related projects
#### 🎟️ &nbsp; Modules for Node.js
| project | description | npm |
|--- |--- |--- |
| [@geek/google-sheets](https://www.npmjs.com/package/@geek/google-sheets) | Easy way to manage Google Sheets API from Node.js | [![@geek/google-sheets](https://img.shields.io/npm/v/@geek/google-sheets.png)](https://www.npmjs.com/package/@geek/google-sheets) |
#### 🎟️ &nbsp; Modules for Node.js and Titanium Mobile
| project | description | npm |
|--- |--- |--- |
| [@geek/cache](https://www.npmjs.com/package/@geek/cache) | Caching module for Node.js and Axway Titanium | [![@geek/cache](https://img.shields.io/npm/v/@geek/cache.png)](https://www.npmjs.com/package/@geek/cache) |
| [@geek/jsonc](https://www.npmjs.com/package/@geek/cache) | JSONC and JSON utilities for JavaScript with Node.js and Axway Titanium. | [![@geek/jsonc](https://img.shields.io/npm/v/@geek/jsonc.png)](https://www.npmjs.com/package/@geek/jsonc) |
| [@geek/jwt](https://www.npmjs.com/package/@geek/jwt) | JWT parser for JavaScript Node.js and Titanium native mobile | [![@geek/jwt](https://img.shields.io/npm/v/@geek/jwt.png)](https://www.npmjs.com/package/@geek/jwt) |
| [@geek/logger](https://www.npmjs.com/package/@geek/logger) | Logging module for Node.js and Axway Titanium | [![@geek/logger](https://img.shields.io/npm/v/@geek/logger.png)](https://www.npmjs.com/package/@geek/logger) |
| [@geek/mobile](https://www.npmjs.com/package/@geek/mobile) | Toolkit for creating, building, and managing mobile app projects. | [![@geek/mobile](https://img.shields.io/npm/v/@geek/mobile.png)](https://www.npmjs.com/package/@geek/mobile) |
| [@geek/retry](https://www.npmjs.com/package/@geek/retry) | Retry JavaScript functions and promises in Node.js and Axway Titanium | [![@geek/retry](https://img.shields.io/npm/v/@geek/retry.png)](https://www.npmjs.com/package/@geek/retry) |
## 📣 &nbsp; Feedback
Have an idea or a comment? [Join in the conversation here](https://github.com/brentonhouse/geek-logger/issues)!
-----
## Follow Brenton House
> Follow [`Brenton House`](https://brenton.house) for the latest on great modules and libraries!
[![Twitter Follow](https://img.shields.io/twitter/follow/brentonhouse?label=Follow%20%40brentonhouse%20on%20twitter&style=social)](https://twitter.com/brentonhouse)
[![LinkedIn Follow](https://img.shields.io/badge/LinkedIn-_Connect_with_%40brentonhouse_-blue?logo=linkedin&style=flat-square)](https://www.linkedin.com/in/brentonhouse/)
![Github Followers](https://img.shields.io/github/followers/brentonhouse?label=Follow%20%40brentonhouse%20on%20GitHub&style=social)
-----
## ©️ Legal

@@ -48,0 +89,0 @@

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