2.3.2 • Published 6 years ago

sus-2-image v2.3.2

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

sus-2-image

SeaUrchinScore to Image for node

npm sus:v2.17.0

Description

*.sus to Image.

Installation

$ yarn add sus-2-image

How to use

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)
  })
})
2.3.2

6 years ago

2.3.1

6 years ago

2.3.0

6 years ago

2.2.1

6 years ago

2.2.0

6 years ago

2.1.0

6 years ago

2.0.0

6 years ago

1.3.3

6 years ago

1.3.2

6 years ago

1.3.1

6 years ago

1.3.0

6 years ago

1.2.1

6 years ago

1.2.0

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago