Files: 0baf5414ce7a4d8be1f75148ec7dce869d876d66 / config.js
333 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 | return nest('config.sync.load', () => { |
7 | var config |
8 | return () => { |
9 | if (!config) { |
10 | config = Config(process.env.ssb_appname) |
11 | } |
12 | return config |
13 | } |
14 | }) |
15 | } |
16 |
Built with git-ssb-web