obj-to-cloudwatch-pattern
v1.0.0
Published
Convert object into AWS CloudWatch log pattern
Downloads
2
Readme
obj-to-cloudwatch-pattern
Convert object into AWS CloudWatch log pattern
Example
import convert from 'obj-to-cloudwatch-pattern'
convert({
a: 42,
b: 'string "escaped" \\ o_o /',
c: 'nomatch',
d: null,
e: undefined,
f: { g: '<=40', h: '>= 50', i: '/users/*' },
j: { k: '> 10', l: '< 100', m: { n: { o: 'nested' } }, p: '!wow' }
})
($.a = 42) && ($.b = "string \"escaped\" \\ o_o /") && ($.c = nomatch) && ($.d IS NULL) && ($.e NOT EXISTS) && ($.f.g <= 40) && ($.f.h >= 50) && ($.f.i = /users/*) && ($.j.k > 10) && ($.j.l < 100) && ($.j.m.n.o = "nested") && ($.j.p != "wow")