Product
Introducing SSO
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
@pencilpix/peaks
Advanced tools
Readme
it depends on ffmpeg
and canvas
. please be sure you have it on the machine before use this server.
clone or download this repo
ffmpeg
is installed at your machine.cd /path/to/repo/clone
npm install
or yarn
yarn run start
const url = 'http://localhost:2500/peaks'
const waveformOptions = {
barGap: 2,
barWidth: 2,
height: 128,
width: 1200,
waveColor: '#757575',
maxWidth: 4000,
pxRatio: 2,
numOfSample: 1800,
waveformType: 1,
}
axios.get(url, {
track: 'http://kolber.github.io/audiojs/demos/mp3/06-suicidal-fantasy.mp3', // could be ['url']
...waveformOptions
})
// -> response { track: 'http://kolber.github.io/audiojs/demos/mp3/06-suicidal-fantasy.mp3', image: 'data:image/png;base64...', peaks: [0.324, 0.3243, ....]}
FAQs
nodejs server that accept posting a url of audio file and respond with it's peaks.
The npm package @pencilpix/peaks receives a total of 6 weekly downloads. As such, @pencilpix/peaks popularity was classified as not popular.
We found that @pencilpix/peaks demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.