git ssb

7+

dinoworm ๐Ÿ› / patchcore



Tree: 0baf5414ce7a4d8be1f75148ec7dce869d876d66

Files: 0baf5414ce7a4d8be1f75148ec7dce869d876d66 / config.js

333 bytesRaw
1const Config = require('ssb-config/inject')
2const nest = require('depnest')
3
4exports.gives = nest('config.sync.load')
5exports.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