resolve-json
v3.0.1
Published
A simple function that can import JSONs
Downloads
5
Readme
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)