     shasum.update('"', 'utf8')
     shasum.update(value, 'utf8')
     shasum.update('"', 'utf8')
-  else if typeof value is 'boolean' or typeof value is 'number'
+  else if typeof value in ['boolean', 'number']
     shasum.update(value.toString(), 'utf8')
   else if typeof value is null
     shasum.update('null', 'utf8')

    'filename': filePath
  for key, value of defaultOptions
    options[key] = value
  return options

# Function that obeys the contract of an entry in the require.extensions map.
# Returns the transpiled version of the JavaScript code at filePath, which is

  shasum.update(version, 'utf8')
  shasum.update('\0', 'utf8')
  updateDigestForJsonValue(shasum, options)
  shasum.digest('hex')

cacheDir = path.join(fs.absolute('~/.atom'), 'compile-cache')
jsCacheDir = path.join(
