Giter Club home page Giter Club logo

Comments (11)

sindresorhus avatar sindresorhus commented on May 16, 2024 1

Actually, I can handle it.

from alfy.

sindresorhus avatar sindresorhus commented on May 16, 2024

process.env?

from alfy.

artivilla avatar artivilla commented on May 16, 2024

So this should work? alfy.output([{ title: process.env.NVM_DIR }]); Is there a way to console.log this without using alfy.output()?

from alfy.

sindresorhus avatar sindresorhus commented on May 16, 2024

Yes, you could console.error(process.env.NVM_DIR) and check the debug panel in your workflow in Alfred.

from alfy.

sindresorhus avatar sindresorhus commented on May 16, 2024

I guess we could add a alfred.debug() method.

from alfy.

sindresorhus avatar sindresorhus commented on May 16, 2024

Just curious, why do you need process.env.NVM_DIR?

from alfy.

artivilla avatar artivilla commented on May 16, 2024

Just an example, I wanted to have the user set the GITHUB_API_TOKEN locally so they can make API calls to their repos. Requires auth. Let me know if you know a diff way I can accomplish the same task? And thank you for all your hard work!

from alfy.

artivilla avatar artivilla commented on May 16, 2024

Oh nice, I didn't know there was a debug panel. πŸ™ƒ That should be sufficient. Maybe we can add that to the docs?! I can put up a PR if you prefer.

from alfy.

sindresorhus avatar sindresorhus commented on May 16, 2024

I can put up a PR if you prefer.

πŸ‘

from alfy.

sindresorhus avatar sindresorhus commented on May 16, 2024

Done: #56

from alfy.

sindresorhus avatar sindresorhus commented on May 16, 2024

Let me know if you know a diff way I can accomplish the same task?

That's the best way until #36 is implemented.

from alfy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.