talk-msg-dsl
Message DSL reader/writer of Jianliao.com
Last updated 10 years ago by boshen .
ISC · Repository · Original npm
$ cnpm install talk-msg-dsl 
SYNC missed versions from official npm registry.

Message DSL reader/writer of Jianliao.com

Usage

msgDsl = require 'msg-dsl'
msgBody = '<$mark|model|view$>'
result = msgDsl.read msgBody
msgDsl.write result

Methods:

  • read :: (string) -> array read DSL array from string
  • write :: (array) -> string write string from DSL array
  • writeHtml :: (array) -> string write HTML string from DSL array
  • recognize :: (string, string, array) -> array get DSL array from message text
  • flattern :: (array, array) -> string generate message text from DSL array
  • update :: (array, array) -> array update information in DSL array

License

Closed

Current Tags

  • 1.2.1                                ...           latest (10 years ago)

1 Versions

  • 1.2.1                                ...           10 years ago
Maintainers (2)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (4)
Dev Dependencies (3)
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org