@suluk/env - v0.2.0
    Preparing search index...

    Function encryptContent

    • Encrypt every plaintext value in the content to publicKey, leaving already-encrypted values + the key vars + comments untouched, and ensuring the SULUK_PUBLIC_KEY line is present. Returns the new file content. only restricts which keys get encrypted (default: all). skipPlain leaves listed keys as plaintext.

      Parameters

      • content: string
      • publicKey: string
      • opts: { only?: string[]; skipPlain?: string[] } = {}

      Returns Promise<string>