mirror of
https://github.com/Sevichecc/Urara-Blog.git
synced 2025-05-02 18:49:30 +08:00
14 lines
299 B
Text
14 lines
299 B
Text
module.exports = colorSupport({ alwaysReturn: true }, colorSupport)
|
|
|
|
function colorSupport(options, obj) {
|
|
obj = obj || {}
|
|
options = options || {}
|
|
obj.level = 0
|
|
obj.hasBasic = false
|
|
obj.has256 = false
|
|
obj.has16m = false
|
|
if (!options.alwaysReturn) {
|
|
return false
|
|
}
|
|
return obj
|
|
}
|