
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@chatopera/ms-parser
Advanced tools
SuperScript parser is the interface for reading *.ss
files and creating a internal representation for the SuperScript dialogue engine.
More information can be found at superscriptjs.com
parseDirectory(path, options, callback)
Takes a directory path and parses all the *.ss
files in the directory, creating a JSON structure which is passed into callback as callback(err, results)
. The options
parameter is an object that can accept a factSystem for use in trigger and reply expansion, and a cache to skip previously parsed files in a directory.
options.lang
supports en_US
and zh_CN
, default is en_US
.
parseFile(path, factSystem, lang, callback)
Like loadDirectory
, but parses a single *.ss
file.
lang
supports 'en_US' and 'zh_CN'.
parseContents(path, factSystem, lang, callback)
Like parseFile
, but parses a string (i.e. the contents of a single file).
lang
supports 'en_US' and 'zh_CN'.
normalizeTrigger(trigger, factSystem, callback)
Takes a trigger string (for example, 'I like * and *~1, but not [cats|dogs].') and generates the regex for the trigger, which is passed into callback as callback(err, cleanedTrigger)
.
FAQs
The parser interface for Manuscript
The npm package @chatopera/ms-parser receives a total of 2 weekly downloads. As such, @chatopera/ms-parser popularity was classified as not popular.
We found that @chatopera/ms-parser demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
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.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.