SeaUrchinScore to Image for node
*.sus to Image.
$ yarn add sus-2-image
const Sus2Image = require('sus-2-image')
const fs = require('fs')
const sus = fs.readFileSync('example.sus','utf8')
Sus2Image.getSVG(sus).then(image => {
fs.writeFileSync(`score.svg` , image)
})
Sus2Image.getPNG(sus).then(image => {
fs.writeFileSync(`score.png` , image)
})
Sus2Image.getPNGs(sus).then(images => {
images.forEach((image, index) => {
fs.writeFileSync(`score_${index}.png` , image)
})
})