Gathering detailed insights and metrics for generate-sound-waveform
Gathering detailed insights and metrics for generate-sound-waveform
Gathering detailed insights and metrics for generate-sound-waveform
Gathering detailed insights and metrics for generate-sound-waveform
npm install generate-sound-waveform
Typescript
Module System
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
2 Stars
26 Commits
1 Forks
1 Watchers
3 Branches
1 Contributors
Updated on May 12, 2022
Latest Version
0.1.11
Package Id
generate-sound-waveform@0.1.11
Unpacked Size
6.10 kB
Size
2.29 kB
File Count
3
NPM Version
6.7.0
Node Version
11.3.0
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
This package converts sound files such as wav and mp3 to waveform images in Nodejs environment.\
The node gyp related installation may take a long time.
const lib = require('generate-sound-waveform');
const fs = require('fs');
// generateSoundImage([SOUND FILE PATH], [WIDTH], [HEIGHT])
lib
.generateSoundImage('./samples/sample1.ogg', 1250, 200, {
stepMultiplier: 10, // Density of waveform [default : 4]
backgroundColor: '#666', // image background color [default : '#fff']
lineColor: '#fff', // image line color [default : '#666']
globalAplha: 0.8, // draw line global alpha value [default : 0.6]
padding: 60, // padding height [default : 8]
lineWidth : 1 // draw line width [default : 0.5]
centerLine: false, // center guide line [default : true]
centerLineColor: '#fff', // center guild line color [default : '#fff']
})
.then((stream) => {
const out = fs.createWriteStream('./test.jpeg');
stream.pipe(out);
out.on('finish', () => console.log('complete'));
})
.catch((err) => {
console.log(err);
});
generateSoundImage(path, width, height, option?)
property | value | desc |
---|---|---|
path | string | sound file path |
width | number | export jpeg width |
height | number | export jpeg height |
option | object | export image settings |
property | value | default |
---|---|---|
padding | number | 8 |
stepMultiplier | number | 4 |
backgroundColor | string | '#fff' |
lineColor | number | '#666' |
globalAplha | number | 0.6 |
lineWidth | number | 0.5 |
centerLine | boolean | true |
centerLineColor | string | '#fff' |
The Sample Project is available in GitHub - hyunwoo/generate-sound-waveform along with a sample sound file.
Thanks To
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
Found 1/25 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
license file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
13 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More