Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Visualization of JSSM machines using viz.js
Easy to use fsl
to svg
through jssm
.
cd ~/projects && mkdir jssm-viz-demo && cd jssm-viz-demo
npm init -y && npm install --save-dev jssm-viz
in dump_svg.js
:
async function run() {
const jssm_viz = require('jssm-viz'),
fsl_code = 'green => yellow => red => green; [green yellow red] ~> off -> red;';
svg_code = await jssm_viz.fsl_to_svg_string(fsl_code);
console.log(svg_code);
}
run();
node ./dump_svg.js
Et voila: svg
of your fsl
.
<!doctype html><html><head><title>jssm-viz example</title>
<script defer type="text/javascript" src="jssm-viz.iife.js"></script>
<script defer type="text/javascript">
window.onload = async () => {
const ExMachine = `
Green => Yellow => Red => Green;
[Red Yellow Green] ~> Off -> Red;
`;
document.getElementById('tgt').innerHTML = await window.jssm_viz.fsl_to_svg_string(ExMachine);
}
</script>
</head>
<body><div id="tgt"></div></body>
</html>
jssm-viz
is a way to render your fsl
and jssm
to svg
(and from there to jpeg
and png
.)
TODO: write a better readme
FAQs
Visualization of JSSM machines using viz.js
The npm package jssm-viz receives a total of 298 weekly downloads. As such, jssm-viz popularity was classified as not popular.
We found that jssm-viz demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.