Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nicoJS

ニコニコ動画風コメントを実装するライブラリ。

Install

npm

npm install nicojs

git

git clone https://github.com/yuki540net/nicoJS

Usage

nicoJS = require('nicoJS')

let nico = new nicoJS({
    app       : document.getElementById('app'),
    width     : 600,
    height    : 400,
    font_size : 50,     // opt
    color     : '#fff'  // opt
})

任意のタイミングでコメントを流す

// コメント待機
nico.listen()

// コメント送信
nico.send('Hello World.', '色[option]', 'フォントサイズ[option]')

特定のコメントを流し続ける

// コメントを流し続ける
nico.loop([
    'comment_1',
    'comment_2',
    'comment_3',
    'comment_4'
])

Lisence

このライブラリは、MIT Lisenceのもとで公開されています。

About

ニコニコ風コメントを実装するライブラリ

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages