json-log-line 0.0.3 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -105,6 +105,34 @@ Format is an object the represents how you want to parse the log object. It will
105
105
 
106
106
  A special key that contains the rest of the log object fields which were both included and not formatted by a format function.
107
107
 
108
+ #### Multi keys
109
+
110
+ You can map a single formatter to multiple keys by separating them with a pipe (`|`). Each key is resolved independently (dot notation is supported) and rendered in order. Every matched value is passed through the same formatter, and each consumed key is removed from the remaining `extraFields` payload.
111
+
112
+ ```javascript
113
+ const lineFormatter = logLineFactory({
114
+ format: {
115
+ // Applies to both top-level keys
116
+ 'foo|baz': (value) => `!${value}`,
117
+ // Works with nested keys, too
118
+ 'nested.a|other.a': (value) => `:${value}:`,
119
+ },
120
+ });
121
+
122
+ console.log(
123
+ lineFormatter(
124
+ JSON.stringify({
125
+ foo: 'bar',
126
+ baz: 'buz',
127
+ nested: {a: 'x', b: 'y'},
128
+ other: {a: 'z'},
129
+ }),
130
+ ),
131
+ );
132
+ // => !bar !buz :x: :z:
133
+ // {"nested":{"b":"y"},"other":{}}
134
+ ```
135
+
108
136
  ### include
109
137
 
110
138
  `string[]`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "json-log-line",
3
- "version": "0.0.3",
3
+ "version": "1.0.0",
4
4
  "description": "A utility for building awesome log lines from JSON",
5
5
  "homepage": "https://github.com/spence-s/json-log-line",
6
6
  "bugs": {
@@ -32,18 +32,12 @@
32
32
  ],
33
33
  "scripts": {
34
34
  "build": "npm run clean && tsc --project tsconfig.build.json",
35
- "build:test": "npm run clean && tsc --project tsconfig.json",
36
- "build:watch": "npm run clean && tsc --project tsconfig.json --watch",
37
35
  "check": "tsc --project ./tsconfig.json",
38
36
  "clean": "rimraf dist",
39
- "dev": "NODE_NO_WARNINGS=1 node --loader ts-node/esm/transpile-only ./src/index.ts",
40
- "dev:watch": "NODE_NO_WARNINGS=1 node --watch --loader ts-node/esm/transpile-only ./src/index.ts",
41
- "lint": "xo",
42
- "lint:fix": "xo --fix",
37
+ "lint": "npm run check && xo",
43
38
  "prepare": "husky",
44
39
  "release": "np",
45
- "test": "npm run build:test && c8 ava",
46
- "test:watch": "ava --watch",
40
+ "test": "c8 ava",
47
41
  "update": "ncu -i"
48
42
  },
49
43
  "prettier": {
@@ -52,41 +46,45 @@
52
46
  ]
53
47
  },
54
48
  "ava": {
55
- "files": [
56
- "dist/test/**",
57
- "!dist/test/fixtures/**",
58
- "!dist/test/helpers/**"
49
+ "extensions": [
50
+ "ts"
59
51
  ],
60
- "nodeArguments": [
61
- "--no-warnings"
52
+ "files": [
53
+ "test/**",
54
+ "!test/fixtures/**",
55
+ "!test/helpers/**"
62
56
  ],
63
57
  "verbose": true
64
58
  },
65
59
  "dependencies": {
66
60
  "@fastify/deepmerge": "^3.1.0",
67
61
  "fast-json-parse": "^1.0.3",
68
- "get-value": "^3.0.1",
62
+ "get-value": "^4.0.1",
69
63
  "set-value": "^4.1.0",
70
64
  "unset-value": "^2.0.1"
71
65
  },
72
66
  "devDependencies": {
73
- "@commitlint/cli": "^19.4.1",
74
- "@commitlint/config-conventional": "^19.4.1",
67
+ "@commitlint/cli": "^20.2.0",
68
+ "@commitlint/config-conventional": "^20.2.0",
75
69
  "@types/get-value": "^3.0.5",
76
- "@types/node": "^22.5.4",
70
+ "@types/node": "^25.0.3",
77
71
  "@types/set-value": "^4.0.3",
78
- "ava": "^6.1.3",
79
- "c8": "^10.1.2",
80
- "husky": "^9.1.5",
81
- "lint-staged": "^15.2.10",
82
- "np": "^10.0.7",
72
+ "ava": "^6.4.1",
73
+ "c8": "^10.1.3",
74
+ "husky": "^9.1.7",
75
+ "lint-staged": "^16.2.7",
76
+ "np": "^10.2.0",
83
77
  "npm-check-updates": "latest",
84
- "npm-package-json-lint": "^8.0.0",
85
- "npm-package-json-lint-config-default": "^7.0.1",
86
- "prettier": "^3.3.3",
87
- "prettier-plugin-packagejson": "^2.5.2",
88
- "rimraf": "^6.0.1",
78
+ "npm-package-json-lint": "^9.0.0",
79
+ "npm-package-json-lint-config-default": "^8.0.1",
80
+ "prettier": "^3.7.4",
81
+ "prettier-plugin-packagejson": "^2.5.20",
82
+ "rimraf": "^6.1.2",
89
83
  "ts-node": "^10.9.2",
90
- "xo": "^0.59.3"
84
+ "typescript": "^5.9.3",
85
+ "xo": "^1.2.3"
86
+ },
87
+ "engines": {
88
+ "node": ">=22"
91
89
  }
92
90
  }
@@ -1,19 +0,0 @@
1
- export type Options = {
2
- exclude?: string | string[];
3
- include?: string | string[];
4
- format?: Record<string, (value: any, parsedLogObject?: any, ...arguments_: any[]) => string>;
5
- logLineKeys?: string | string[];
6
- };
7
- export declare function logLineFactory({
8
- /**
9
- * include and exclude both take keys with dot notation
10
- */
11
- exclude,
12
- /**
13
- * include always overrides exclude
14
- */
15
- include,
16
- /**
17
- * Format functions for any given key, keys of the object are automatically included and cannot be excluded
18
- */
19
- format, }?: Options): (inputData: string | Record<string, unknown>) => string;
package/dist/src/index.js DELETED
@@ -1,100 +0,0 @@
1
- import jsonParse from 'fast-json-parse';
2
- import unset from 'unset-value';
3
- import get from 'get-value';
4
- import set from 'set-value';
5
- import deepMerge from '@fastify/deepmerge';
6
- import isObject from './utils/is-object.js';
7
- import isEmpty from './utils/is-empty.js';
8
- const nl = '\n';
9
- export function logLineFactory({
10
- /**
11
- * include and exclude both take keys with dot notation
12
- */
13
- exclude = [],
14
- /**
15
- * include always overrides exclude
16
- */
17
- include = [],
18
- /**
19
- * Format functions for any given key, keys of the object are automatically included and cannot be excluded
20
- */
21
- format = {}, } = {}) {
22
- const logLineKeys = Object.keys(format);
23
- format.extraFields ||= (object) => JSON.stringify(object) + nl;
24
- /**
25
- * @param inputData - The input data to be formatted can be a JSON stringified object or a plain object
26
- */
27
- return function (inputData) {
28
- try {
29
- let object = {};
30
- if (typeof inputData === 'string') {
31
- const parsedData = jsonParse(inputData);
32
- if (!parsedData.value || parsedData.err) {
33
- return inputData + nl;
34
- }
35
- object = parsedData.value;
36
- }
37
- else if (isObject(inputData)) {
38
- object = inputData;
39
- }
40
- else {
41
- return nl;
42
- }
43
- // cache the whitelist
44
- const whiteListObject = {};
45
- for (const key of [...logLineKeys, ...include]) {
46
- const value = get(object, key);
47
- if (value) {
48
- set(whiteListObject, key, value);
49
- }
50
- }
51
- // remove the blacklist
52
- for (const key of exclude) {
53
- unset(object, key);
54
- }
55
- // add back in the whitelist
56
- object = deepMerge()(object, whiteListObject);
57
- const output = [];
58
- for (const key of logLineKeys) {
59
- // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
60
- const value = get(object, key);
61
- if (!value) {
62
- continue;
63
- }
64
- const formatter = format[key];
65
- if (formatter) {
66
- output.push(formatter(value, object));
67
- }
68
- }
69
- // remove the properties that were used to create the log-line
70
- for (const key of logLineKeys) {
71
- unset(object, key);
72
- }
73
- // remove empty blacklist that may have had whitelisted properties
74
- for (const key of exclude) {
75
- if (isEmpty(get(object, key))) {
76
- unset(object, key);
77
- }
78
- }
79
- let outputString = output.filter(Boolean).join(' ');
80
- // after processing the rest of the object contains
81
- // extra fields that were not in the logLine nor in the log line nor blacklisted
82
- // so these are the ones we want to prettify and highlight
83
- if (isObject(object) && !isEmpty(object) && format.extraFields) {
84
- outputString = outputString.concat(format.extraFields(object));
85
- }
86
- if (!outputString.endsWith(nl)) {
87
- outputString += nl;
88
- }
89
- if (outputString === nl) {
90
- return JSON.stringify(object) + nl;
91
- }
92
- return outputString;
93
- }
94
- catch (error) {
95
- console.log(error);
96
- return '';
97
- }
98
- };
99
- }
100
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,iBAAiB,CAAC;AACxC,OAAO,KAAK,MAAM,aAAa,CAAC;AAChC,OAAO,GAAG,MAAM,WAAW,CAAC;AAC5B,OAAO,GAAG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D,IAAI,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,MAAM,CAAC,WAAW,EAAE,CAAC;gBAC/D,YAAY,GAAG,YAAY,CAAC,MAAM,CAAC,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC;YACjE,CAAC;YAED,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,EAAE,CAAC,EAAE,CAAC;gBAC/B,YAAY,IAAI,EAAE,CAAC;YACrB,CAAC;YAED,IAAI,YAAY,KAAK,EAAE,EAAE,CAAC;gBACxB,OAAO,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,GAAG,EAAE,CAAC;YACrC,CAAC;YAED,OAAO,YAAY,CAAC;QACtB,CAAC;QAAC,OAAO,KAAc,EAAE,CAAC;YACxB,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;YACnB,OAAO,EAAE,CAAC;QACZ,CAAC;IACH,CAAC,CAAC;AACJ,CAAC"}
@@ -1,2 +0,0 @@
1
- declare function isEmpty(object: unknown): object is Record<string, never>;
2
- export default isEmpty;
@@ -1,9 +0,0 @@
1
- import isObject from './is-object.js';
2
- function isEmpty(object) {
3
- return Boolean(isObject(object) &&
4
- (object === undefined ||
5
- object === null ||
6
- Object.keys(object).length === 0));
7
- }
8
- export default isEmpty;
9
- //# sourceMappingURL=is-empty.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"is-empty.js","sourceRoot":"","sources":["../../../src/utils/is-empty.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,gBAAgB,CAAC;AAEtC,SAAS,OAAO,CAAC,MAAe;IAC9B,OAAO,OAAO,CACZ,QAAQ,CAAC,MAAM,CAAC;QACd,CAAC,MAAM,KAAK,SAAS;YACnB,MAAM,KAAK,IAAI;YACf,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,MAAM,KAAK,CAAC,CAAC,CACtC,CAAC;AACJ,CAAC;AAED,eAAe,OAAO,CAAC"}
@@ -1,2 +0,0 @@
1
- declare function isObject(input: unknown): input is object;
2
- export default isObject;
@@ -1,6 +0,0 @@
1
- // eslint-disable-next-line @typescript-eslint/ban-types
2
- function isObject(input) {
3
- return Boolean(input && Object.prototype.toString.apply(input) === '[object Object]');
4
- }
5
- export default isObject;
6
- //# sourceMappingURL=is-object.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"is-object.js","sourceRoot":"","sources":["../../../src/utils/is-object.ts"],"names":[],"mappings":"AAAA,wDAAwD;AACxD,SAAS,QAAQ,CAAC,KAAc;IAC9B,OAAO,OAAO,CACZ,KAAK,IAAI,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,iBAAiB,CACtE,CAAC;AACJ,CAAC;AAED,eAAe,QAAQ,CAAC"}
@@ -1 +0,0 @@
1
- export {};
@@ -1,71 +0,0 @@
1
- import test from 'ava';
2
- import { logLineFactory } from '../src/index.js';
3
- test('named export is a function', (t) => {
4
- t.is(typeof logLineFactory, 'function');
5
- });
6
- test('returns the original JSON stringified string if no formatters are provided', (t) => {
7
- const logLine = logLineFactory();
8
- const input = JSON.stringify({ foo: 'bar' });
9
- const result = logLine(input);
10
- t.is(result, input + '\n');
11
- });
12
- test('returns the JSON stringified object if an object is the input', (t) => {
13
- const logLine = logLineFactory();
14
- const input = { foo: 'bar' };
15
- const stringified = JSON.stringify(input);
16
- t.is(logLine(input), stringified + '\n');
17
- });
18
- test('creates a simple log line', (t) => {
19
- const input = JSON.stringify({ foo: 'bar' });
20
- const format = {
21
- foo: (value) => value,
22
- };
23
- const logLine = logLineFactory({ format });
24
- t.is(logLine(input), 'bar\n');
25
- });
26
- test('creates a simple log line with default extra fields', (t) => {
27
- const input = JSON.stringify({ foo: 'bar', extra: 'baz' });
28
- const format = {
29
- foo: (value) => value + '\n',
30
- };
31
- const logLine = logLineFactory({ format });
32
- t.is(logLine(input), 'bar\n{"extra":"baz"}\n');
33
- });
34
- test('creates a simple log line with formatted extra fields', (t) => {
35
- const input = JSON.stringify({ foo: 'bar', extra: 'baz' });
36
- const format = {
37
- foo: (value) => value + '\n',
38
- extraFields: (value) => JSON.stringify(value, null, 2),
39
- };
40
- const logLine = logLineFactory({ format });
41
- t.is(logLine(input), 'bar\n' + JSON.stringify({ extra: 'baz' }, null, 2) + '\n');
42
- });
43
- test('nested fields can be added to log line and removed from extra fields', (t) => {
44
- const input = JSON.stringify({ foo: { bar: 'baz' } });
45
- const format = {
46
- 'foo.bar': (value) => value + '\n',
47
- };
48
- const logLine = logLineFactory({ format });
49
- t.is(logLine(input), 'baz\n{"foo":{}}\n');
50
- });
51
- test('nested respect exlude and include', (t) => {
52
- const input = JSON.stringify({ foo: { bar: 'baz', biz: 'buz', no: 'output' } });
53
- const format = {
54
- 'foo.bar': (value) => value + '\n',
55
- };
56
- const logLine = logLineFactory({
57
- format,
58
- exclude: ['foo'],
59
- include: ['foo.biz'],
60
- });
61
- t.is(logLine(input), 'baz\n{"foo":{"biz":"buz"}}\n');
62
- });
63
- test('deep nested fields can be added to log line and removed from extra fields', (t) => {
64
- const input = JSON.stringify({ foo: { bar: { baz: 'buz', qux: 'quux' } } });
65
- const format = {
66
- 'foo.bar.baz': (value) => value + '\n',
67
- };
68
- const logLine = logLineFactory({ format });
69
- t.is(logLine(input), 'buz\n{"foo":{"bar":{"qux":"quux"}}}\n');
70
- });
71
- //# sourceMappingURL=create-log-line.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"create-log-line.js","sourceRoot":"","sources":["../../test/create-log-line.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,KAAK,CAAC;AACvB,OAAO,EAAC,cAAc,EAAC,MAAM,iBAAiB,CAAC;AAE/C,IAAI,CAAC,4BAA4B,EAAE,CAAC,CAAC,EAAE,EAAE;IACvC,CAAC,CAAC,EAAE,CAAC,OAAO,cAAc,EAAE,UAAU,CAAC,CAAC;AAC1C,CAAC,CAAC,CAAC;AAEH,IAA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