1.2.0 • Published 1 year ago

log-interest v1.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Log

Install

npm i log-interest

  // use in browser alone 
  // import { agLog, agline } from '/node_modules/log-interest/index.js'
  
  // webpack build
  import { agLog, agline } from 'log-interest'

  agLog('Hello Log')
  agline()(10)

Features

  • 💭agLog: Displays the current time, automatically displays the type

      agLog('String')
      agLog(1013)
      agLog(undefined)
      agLog(null)
    
      const obj = {
        name: 'agility'
      }
      agLog('--->',obj)

    example

  • 🧵agline: You can customize the color, customize the number of lines

      // colorDefault:#13678A
      agline()(10)
      agline('#7AB3BF')(10)
      agline('#308C58')(10)
      agline('#F2BE5C')(10)
      agline('#D98E32')(10)
      agline('#731702')(10)
    
      const youColorLine = agline('#FF5A33')
      youColorLine(10)

    example