Agility6 / log

πŸ’πŸ»βœ‰οΈ This is an interesting log

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Log

πŸ’πŸ» When learning JavaScript, I think it's not convenient to use the console .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

About

πŸ’πŸ»βœ‰οΈ This is an interesting log

License:MIT License


Languages

Language:JavaScript 100.0%