Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
select-and-speak
Advanced tools
npm install select-and-speak
Select (highlight) text in your browser and have it spoken by speech synthesis. Use https://github.com/tom-s/speak-tts for the speech synthesis.
See browser support here : http://caniuse.com/#feat=speech-synthesis
Import the component :
import Speech from 'select-and-speak' // es6
// var Speech = require('select-and-speak') //if you use es5
Start the component :
const speech = new Speech()
speech.init().then((data) => {
// The "data" object contains the list of available voices and the voice synthesis params
console.log("Speech is ready, voices are available", data)
}).catch(e => {
console.error("An error occured while initializing : ", e)
})
// Exemple with conf
Speech.init({
'wordwrap': true, // default: whether or not selection should be expanded to the end of the word
'autospeak': true // default: whether or not text should be spoken on selection (mouseUp or touchEnd event)
// you can also add similar options to the ones in init() from https://github.com/tom-s/speak-tts
});
The Speech class inherits from the class provided by speak-tts. It means all the methods from speak-tts are available, plus the following:
Set wordwrap :
speech.setWordwrap(false)
Set autospeak :
speech.setAutospeak(false)
Speak the current selection :
speech.speakSelectedText() // you can add similar options to the ones in speak() from https://github.com/tom-s/speak-tts
Get current text selection :
speech.getSelectedText({})
These will be added soon. Please do not hesitate to add some !
I am a full-stack Javascript developer based in Lyon, France.
speech and speak is dual licensed under the MIT license and GPL. For more information click here.
FAQs
Select and speak
The npm package select-and-speak receives a total of 0 weekly downloads. As such, select-and-speak popularity was classified as not popular.
We found that select-and-speak 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.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.