Comments (6)
If we installed all the parsers in production, that would only bloat the disk space and memory use in production.
I run more than a hundred node apps on the same server in production which all use Node config. How many memory they use matters-- memory is one of the primary things I'm paying to rent.
So, no, I won't want to pay for extra memory to keep the YAML parser in memory or on disk if I don't need it.
from node-config.
Thank you for the question Flavio and for your answer, Mark. It highlights one of the most valuable features of node-config, the one that keeps it as relevant in 2024 as it was when first published in 2011.
Use the parser you want, and don't bring in what you don't need.
This module has stood the test of time because of this feature. Today, users aren't bogged down with outdated dependencies with maintenance and security issues. Tomorrow, your modules will still pass security audits and stay trim as new parsers become available.
In the not too distant future, that most popular voice-file configuration format will be all the rage. The voice-file-parser will have matured and all the latest projects use it. The newer thought-wave file format will be used by a small number of apps, and extensions will allow comments (they'll be called commentary) embedded as voice-file sections. And node-config will work with all of it.
... and of course your application will still be trim, secure, and running. You'll be able to spin yarns with your grandkids about having to hand craft those configurations in a format we used to call eeeyaaaaaaaaaaaaaaaml.
from node-config.
The YAML dependency is optional and you didn't add it to your package.json, and you got a clear error message explaining what the problem was and how to fix it. That's not a bug in node-config.
from node-config.
Thanks! I was talking about de dependencies of the project. When I install it as production the node-config has just the json parser as production dependency
from node-config.
from node-config.
from node-config.
Related Issues (20)
- custom-environment-variables.json says variable is not defined. HOT 1
- Feature Request: First class Kubernetes secret files support HOT 3
- [BUG] Cypress component testing fails with error `<CONFIG_VARIABLE> is not defined`
- Deal With Async Properties in DeferConfig HOT 1
- [BUG] Documentation is missing HOT 4
- [BUG] custom-environment-variables file does not support cjs extension HOT 2
- [BUG] Extra quotes on config file broke app HOT 5
- Cannot use defer with esbuild (fix: export defer from config) HOT 1
- Unable to use
- [BUG] Configuration files with different extensions and APP_INSTANCE not loaded in the right order HOT 2
- [BUG] Javascript getters calling during config initialization
- [BUG] Empty key in YAML sets value to null HOT 2
- [BUG] Environment variable substitution fails silently if "__format" parser is not supported HOT 1
- Project breaks after updating ts version (using .cjs config files)
- v3.3.10 is a breaking change for webpack, which does not install json5 dep HOT 18
- Disable some "defaults", like local.{ext} loading HOT 3
- [BUG] YAML binary type is mangled
- [BUG] Encoungering an unexpected ENOTDIR while trying to open non-existing runtime.json
- [BUG] DeprecationWarnings in node v22 DEP0055 DEP0047 DEP0044
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-config.