Find and Query agains a JSON file
This module is used to traverse up a directory structure looking for a json file. It can find and read in the file, then provide a simple query method agains the data. By default it will look for a package.json
.
Examples:
var File = ; var f = ;f:
// Directory Structure:// - config.json// - foo/// | - other.js// // Run from in foo:// $ node ./other.js// // File: config.json "db": "host": "localhost" // File: other.jsvar File = ; var f = filename: 'config.json' delim: '.';f; f; // {host: 'localhost'}f; // 'localhost'