
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
itako-token
Advanced tools
npm install itako-token --save
itako-token has type and value and reader options.
import Itako from 'itako';
import Reader from 'itako-text-reader-speech-synthesis';
import Token from 'itako-token';
const token = new Token('text', 'greeting', {volume: 1, pitch: 1.5});
// speech-synthesis say "greeting" using option
new Itako([new Reader]).readToken(token);
the class defines the reader type, sentence, and grant information for itako-readers.
setType(type) -> thisdefine the type of reader. reader will ignore the except specific type(eg text-reader ignores the audio type).
setValue(value) -> thisdefine the reader read aloud value(eg text or audio file url).
setOption(key, value) -> thissetOptions(options) -> thisdefine the grant information about the read aloud(eg volume, pitch, speaker, etc).
setMeta(key, value) -> thisdefine the meta information for debug.
clone(meta) -> tokencreate a new instance using an instance.
const token = new Token('text', 'greeting', { volume: 1, pitch: 1.5 });
const clonedToken = token.clone({ cloned: true }).setOptions({ volume: 0.5 });
console.log(JSON.stringify(token));
// {"type":"text","value":"greeting","options":{"volume":1,"pitch":1.5},"meta":{}}
console.log(JSON.stringify(clonedToken));
// {"type":"text","value":"greeting","options":{"volume":0.5,"pitch":1.5},"meta":{"cloned":true}}
node
> require('itako-token')('error')
# TypeError: Cannot convert undefined or null to object
# at f (/Users/itakojs/itako-token/lib/index.js:1:2469)
published code is compressed and the source map is provided. not supported by the sourcemap in NodeJS. but this resolved in the node-source-map-support.
npm install source-map-support --save-dev
import 'source-map-support/register';
or...
$ mocha --require source-map-support/register
Requirement global
git clone https://github.com/itakojs/itako-token
cd itako-token
npm install
npm test
FAQs
a text reader token class
We found that itako-token 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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.