[SOLVED] `op run --` does not conceal value when do writeFile in nodejs

Options
JH_L
JH_L
Community Member
edited May 2023 in CLI

When I do writeFile into stdout/stderr, it just prints out the value. If I just do console.log(process.env.GITHUB_USERNAME), the value is concealed. Here's the source code:

require("dotenv").config();
const process = require("process");
const fs = require("fs");

fs.writeFileSync(0, process.env.GITHUB_USERNAME);


1Password Version: 8.10.6
Extension Version: Not Provided
OS Version: macOS 13.3.1(a)
Browser:_ cli

Comments

  • JH_L
    JH_L
    Community Member
    Options

    Turns out it was my mistake, I wrote the value into stdin.

  • Glad you figured this out! Let us know if we can help with anything else!

    Best,
    Horia

This discussion has been closed.