Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Utils

Create new utility functions

Some utility functions which system provided:

  • json: Convert to json format
  • yaml: Convert to yaml format
  • schema: Validate object schema
  • base64: Convert to base64 string
  • md5: Convert to md5 string
  • sign: Format number (+1 or -1)
  • random: Return random string
  • lodash: Return lodash object. (https://lodash.com)
- Utils:
    toLower: txt => txt?.toLowerCase()
    toUpper: txt => txt?.toUpperCase()
###
- Echo: ${Utils.toLower('Hello world')}
- Echo: ${Utils.lodash.merge({a: 1}, {b: 2})}

Hierarchy

  • Tag
    • Utils

Index

Constructors

constructor

  • new Utils(_attrs: {}): Utils
  • Parameters

    Returns Utils

Properties

async

async: boolean

Run async

disabled

disabled: boolean

Ignore this, not run

ignoreError

ignoreError: boolean

Keep run the next when got error

slient

slient: boolean

Not show log

testIt

testIt: boolean

Only allow run it then ignore others which not set testIt or set it to false

title

title: string

Step title

vars

vars: any

Declare global variable