@mapeo/settings

2.1.3 • Public • Published

@mapeo/settings

Settings manager for Mapeo.

Build Status

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

See Mapeo Settings Builder

License

MIT

Package Sidebar

Install

npm i @mapeo/settings

Weekly Downloads

0

Version

2.1.3

License

MIT

Unpacked Size

4.95 kB

Total Files

5

Last publish

Collaborators

  • evanhahn
  • digidem-admin
  • gmaclennan
  • andrew_chou
  • karissa
  • noffle