@mapeo/settings
v2.1.3
Published
Settings management for Mapeo
Downloads
16
Readme
@mapeo/settings
Settings manager for Mapeo.
npm install @mapeo/settings
Usage
var Settings = require('@mapeo/settings')
var settings = new Settings(userDataPath)
settings.importSettings(settingsFile, function (err) {
if (err) throw err
console.log('Settings imported!')
var presets = settings.getSettings('presets')
var icons = settings.getSettings('icons')
//etc..
})
API
instance.getSettings(type)
One of 'css', 'icons', 'presets', 'imagery', or 'metadata'.
instance.getEncryptionKey()
Shorthand for getting the projectKey
from the metadata.
Creating a Mapeo Settings file
License
MIT