Skip to content

Instantly share code, notes, and snippets.

@miaulightouch
Created August 17, 2018 15:28
Show Gist options
  • Save miaulightouch/d3649bcb38fc20fa91c58e4e634fa867 to your computer and use it in GitHub Desktop.
Save miaulightouch/d3649bcb38fc20fa91c58e4e634fa867 to your computer and use it in GitHub Desktop.
import debug from './esm/bundle.mjs'
const info = debug('info')
info.enabled = true // 啟用 debug 訊息
info('hello') // 回傳: info hello +0ms
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment