Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/pass_cli_wrapper/mod.ts

A very crappy tiny Deno script for accessing secrets in a password-store via the pass CLI.
Latest
import * as passCliWrapper from "https://deno.land/x/pass_cli_wrapper@0.3.3/mod.ts";

Functions

Gets entire (trimmed) contents of entry in the password store.

Equivalent to retrieving the contents and looking for a line that starts with ${field}: (the field argument followed by a colon). The remainder of the line (everything after the first colon) will be trimmed and returned.

Gets the first non-empty line from the specified entry in the password store. This may result in an empty string depending on the format of the file.