Security News
Input Validation Vulnerabilities Dominate MITRE's 2024 CWE Top 25 List
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
@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 0 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
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.