Code Monkey home page Code Monkey logo

nodejs-config's Introduction

Hi there ๐Ÿ‘‹ I'm Harish!

I am a full stack web developer and FLOSS supporter specialized in Javascript/NodeJS and web technologies.

๐ŸŒ Check out my website

Languages and Tools:

nodejs-config's People

Contributors

harishanchu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

nodejs-config's Issues

Invalid right side of assignment issue

Hi, it is a long shot and you probably don't maintain this repo anymore ( given last update was 5 years ago ) I really like the way Laravel handles configuration and wanted to use this in my project. When I set the NODE_ENV to development I get an error in index.js line 21 where you assign env parameter to either process.env.NODE_ENV or environmentDetector.

var env = process.env.NODE_ENV = environmentDetector.detect(environments);

image

if you have a chance to take a look, much appreciated. I feel like something like this may quickly resolve and I can submit a PR if you like

var env = process.env.NODE_ENV || environmentDetector.detect(environments);

Inability to specify name of config folder

Thank you for open sourcing this module.

A few comments:

  1. It would be more useful and fit better within the Node community if you allowed the user to override the name of the config folder
  2. It would be more intuitive to longtime Node programmers if process.env.NODE_ENV was the default. That is the environment value almost all popular modules use and is considered a best practice
  3. In your README, it's unclear how your environment configuration object works. Is it specifying the machine names that, if matching the current machine, will indicate which environment the app will consider itself to be in?

I'm interested in using this module for a Netflix project if the above two changes were made. I'd be happy to open a pull request.

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.