obj-to-cloudwatch-pattern
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

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")

Readme

Keywords

none

Package Sidebar

Install

npm i obj-to-cloudwatch-pattern

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

5.83 kB

Total Files

8

Last publish

Collaborators

  • chalkpe