0.1.6 • Published 5 years ago

trueban-processor v0.1.6

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

trueban-processor

my first-rate project

如何使用

首先,我们需要有一个library对象:

const library = {
  'sentence': [
    "Hi! I'm Lily.",
    "Hi! I'm Michael."
    ],
    'word': ["a", "b"]
    }

接下来,初始化tsl

  const tsl = new Processor(library)

lyric格式

假如有一个lyric文本

const lyric = `knock knock hello
====
Hello! (Hello!) 你好,你好!**2
Come in. 请进
Let’s sing. 让我们一起歌唱
Let’s play. 让我们一起游戏`

则输入

  const { parsed , processed } = tsl.compile(lyric,{processor:'lyric'})

list格式

假如我们有一个list文本

const list = `{{library:word}}
^^a
b
===
Hi! I'm Lily.
Hi! I'm Michael.
`

则输入

  const { parsed , processed } = tsl.compile(list)

默认processor为list.

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

Author

trueban-processor © wanthering, Released under the MIT License.

GitHub @wanthering

0.1.6

5 years ago

0.1.5

5 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago