Dead simple lazy storage interface for CLI or project settings. v1.0.0 (latest, 2017) intended for Node.js (^4.5 || 6.* || >= 7.*). Parses JSON files with comments; supports primary (project) and secondary (home) directory lookup. No active development; no major alternatives mentioned. Minimal API: constructor, get, getAll.
npm install yamNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates creating a Yam instance, setting and getting values from a JSON config file.
Use the exact filename (without dot) to search for the corresponding .<name> file.
Ensure file is valid JSON with // or /* */ comments, or use a standard JSON parser.
Consider using an alternative like 'configstore' or 'env-paths'.
Run 'npm install yam' in your project directory.
Ensure you used 'const Yam = require('yam');' and then 'const yam = new Yam('name');'.Use Yam's get() method to read the file; it supports comments. Or use yam's internal parsing.