git ssb

7+

dinoworm ๐Ÿ› / patchcore



Tree: c18b233c6d62741496978cd8dc1f34a093946f8b

Files: c18b233c6d62741496978cd8dc1f34a093946f8b / 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