Socket
Socket
Sign inDemoInstall

cforce

Package Overview
Dependencies
1
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    cforce

force enviroment or console variables to be present


Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Install size
24.4 kB
Created
Weekly downloads
 

Readme

Source

cforce

force cli/env arguments/variables to be present at runtime.

What?

cforce helps me verify that arguments/variables that are needed are found at runtime. This gives me a happy medium between being lazy and hardcoding values, and being awesome and using env/cli variables/arguments.

How?

To use, call require("cforce")("env.*","cli.*",...) which will return true if the variables/arguments are present, and false if they arent (error messages will also be console.warn-ed.

I like to process.exit(-1) on false. I'm also not convinced this module makes sense for many cases. it's also not super tested.

Moar...

MIT LICENSE

Keep calm, carry on.

Keywords

FAQs

Last updated on 16 Feb 2014

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc