Files: 0b68762e851dab73abc45fa60add0d96d3b5c7ac / config.js
298 bytesRaw
1 | const Config = require('ssb-config/inject') |
2 | const nest = require('depnest') |
3 | |
4 | exports.gives = nest('config.sync.load') |
5 | exports.create = (api) => { |
6 | var config |
7 | return nest('config.sync.load', () => { |
8 | if (!config) { |
9 | config = Config(process.env.ssb_appname) |
10 | } |
11 | return config |
12 | }) |
13 | } |
14 |
Built with git-ssb-web