resolve-json
A simple function that resolves json files.
Example
Project Structure
config.json
{
"configstuff": "here"
}
index.js
import resolve from 'resolve-json';
const config = await resolve('./config.json')
// const config = { "configstuff": "here" }
Usage
import resolve from 'json-resolve'
// ...
resolve(path)