
Product
Introducing Webhook Events for Alert Changes
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.
@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
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.

Product
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.

Security News
ENISA has become a CVE Program Root, giving the EU a central authority for coordinating vulnerability reporting, disclosure, and cross-border response.

Product
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.