Sha256: 951f3217d12100a511a8b44925e7376a72f979dfd7c681c80c4947afe2767b62

Contents?: true

Size: 372 Bytes

Versions: 18

Compression:

Stored size: 372 Bytes

Contents

import dayjs from "dayjs"
import dedent from "ts-dedent"
import { v4 } from "uuid"

export function getRuleTemplate(): string {
  const id = v4()
  const now = dayjs()

  return dedent`id: ${id}
                title: Title goes here
                description: Description goes here
                created_on: ${now.format("YYYY-MM-DD")}
                queries: []`
}

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
mihari-5.7.0 frontend/src/rule.ts
mihari-5.6.2 frontend/src/rule.ts
mihari-5.6.1 frontend/src/rule.ts
mihari-5.6.0 frontend/src/rule.ts
mihari-5.5.0 frontend/src/rule.ts
mihari-5.4.9 frontend/src/rule.ts
mihari-5.4.8 frontend/src/rule.ts
mihari-5.4.7 frontend/src/rule.ts
mihari-5.4.6 frontend/src/rule.ts
mihari-5.4.5 frontend/src/rule.ts
mihari-5.4.4 frontend/src/rule.ts
mihari-5.4.3 frontend/src/rule.ts
mihari-5.4.2 frontend/src/rule.ts
mihari-5.4.1 frontend/src/rule.ts
mihari-5.4.0 frontend/src/rule.ts
mihari-5.3.2 frontend/src/rule.ts
mihari-5.3.1 frontend/src/rule.ts
mihari-5.3.0 frontend/src/rule.ts