var util = require('util')
  , ls = window.localStorage
  , id = process.env.workshopper_id || 'browser-workshopper'

module.exports = getProgress
module.exports.set = setProgress
module.exports.get = getProgress

function getProgress(name) {
  var key = util.format('progress.%s:%s', id, name)
  return name && !!ls.getItem(key)
}

function setProgress(name, value) {
  var key = util.format('progress.%s:%s', id, name)
  return name && ls.setItem(key, !!value ? '1' : '')
}

@@ -257,32 +257,35 @@
 til.format('
+%25s.
 progress
 .%25s:%25s', id,
@@ -264,35 +264,32 @@
 mat('%25s.progress
-.%25s
 :%25s', id, name)%0A
@@ -387,24 +387,27 @@
 format('
+%25s.
 progress
 .%25s:%25s',
@@ -402,11 +402,8 @@
 ress
-.%25s
 :%25s'

Reorder LS key name