🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

dance-comment

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dance-comment

danceComment Let code be dance

latest
Source
npmnpm
Version
1.1.3
Version published
Maintainers
1
Created
Source

English | 简体中文

dance-comment

  • example (default) avatar
  • use
import DanceComment from 'dance-comment'
new DanceComment().init()
const config = {
  time: 1000,
  useTemplate: true,
  orderPlay: false
}
new DanceComment(config).init()
  • example (javascript) avatar
  • use
import DanceComment from 'dance-comment'
import javascript from 'dance-comment/dist/template/javascript'
const config = {
  time: 200,
  useTemplate: false,
  template: javascript
}
new DanceComment(config).init()
  • parameter
nametypedefaultexplain
timenumber10000replacement time MS (no replacement if less than 100ms)
useTemplatebooleantrueuse the template provided by the plug-in
templatearray[]custom template
orderPlaybooleantruewhether to switch in order or not. False means random switching
config.template => array
[
  [
    '                 .--,       .--,                    ',
    '                ( (  \\.---./  ) )                   ',
    "                 '.__/o   o\\__.'                    ",
    '                    {=  ^  =}                       ',
    '                     >  -  <                        ',
    '                    /       "                       ',
    '                   //       \\\\                      ',
    '                  //|   .   |\\\\                     ',
    "                  '\\       /''_.-~^`'-.             ",
    "                     \\  _  /--'         `           ",
    '                   ___)( )(___                      ',
    '                  (((__) (__)))                     '
  ],
  [
    "           _._ _..._ .-',     _.._(`))             ",
    "          '-. `     '  /-._.-'    ',/              ",
    "             )         \\            '.             ",
    '            / _    _    |             "            ',
    '           |  a    a    /              |           ',
    '           \\   .-.                     ;           ',
    "            '-('' ).-'       ,'       ;            ",
    "               '-;           |      .'             ",
    '                  \\           \\    /               ',
    '                  | 7  .__  _.-\\   "               ',
    '                  | |  |  ``/  /`  /               ',
    '                 /,_|  |   /,_/   /                ',
    "                    /,_/      '`-'                 "
  ]
]

Keywords

dance

FAQs

Package last updated on 31 Dec 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts