Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
alexa-ssml
Advanced tools
Manipulate and validate the subset of SSML supported by the Alexa Skills Kit
npm install alexa-ssml
<break />
changed to <pause />
transform-react-jsx
babel pluginimport { ssml, renderToString } from 'alexa-ssml';
const tags = (
<speak>
Here is a number <w role="ivona:VBD">read</w> as a cardinal number:
<sayAs interpretAs="cardinal">12345</sayAs>.
Here is a word spelled out: <sayAs interpretAs="spell-out">hello</sayAs>.
</speak>
);
const raw = renderToString(tags);
import { ssml } from 'alexa-ssml';
function LongPause(props) {
return <pause time={10000} />
}
const data = (
<speak>
Foo <LongPause /> bar.
</speak>
)
ssml(tag, props, ...children) -> object
tag
can be a string or function{ tag, props, children }
renderToString(data, [options]) -> string
ssml
function"speak"
tagpretty
, defaults to false. Makes the SSML easier to read.To use SSML JSX syntax directly in JavaScript add /** @jsx ssml */
to the top of the file or configure transform-react-jsx
using .babelrc
:
{
"plugins": [
["transform-react-jsx", { "pragma": "ssml" }]
]
}
FAQs
JSX for Alexa Skills Kit SSML
We found that alexa-ssml 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
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.