index.js
function stringify(obj) {
  if (!isObject(obj)) {
    throw new Error('`Stringify`\'s first argument should be an object')
  }

  var meta = Object.keys(obj)
    .map(function (key) {
      return getLine(key, obj[key])
    }).join('')

  return '// ==UserScript==\n' + meta + '// ==/UserScript==\n'
}
function stringify(obj) {
  if (!isObject(obj)) {
    throw new Error('`Stringify`\'s first argument should be an object')
  }

  var meta = Object.keys(obj)
    .map(function (key) {
      return getLine(key, obj[key])
    }).join('')

  return '// ==UserScript==\n' + meta + '// ==/UserScript==\n'
}
function stringify ( obj ) { if ( ! isObject ( obj ) ) { throw new Error ( '`Stringify`\'s first argument should be an object' ) } var meta = Object . keys ( obj ) . map ( function ( key ) { return getLine ( key , obj [ key ] ) } ) . join ( '' ) return '// ==UserScript==\n' + meta + '// ==/UserScript==\n' }
Stringify metadata from an object
Stringify metadata from an object