
Product
Introducing Scala and Kotlin Support in Socket
Socket now supports Scala and Kotlin, bringing AI-powered threat detection to JVM projects with easy manifest generation and fast, accurate scans.
JavaScript client for the ALKS API, usable in both modern browsers and node.js
JavaScript client for the ALKS API, usable in both modern browsers and node.js
It provides a lightweight wrapper around the ALKS REST API, with the following features:
For browser usage, it expects fetch
(and Promises) to be available. If they're not, you'll need to polyfill them.
Install with NPM like this
npm install alks.js
or Yarn
yarn install alks.js
// Using ES2015 module syntax
import * as ALKS from 'alks.js';
// Using node's require syntax
const ALKS = require('alks.js');
const myAlks = ALKS.create({
baseUrl: 'https://your.alks-host.com',
accessToken: 'abc123',
});
myAlks.getKeys({
account: '012345678910/ALKSPowerUser',
role: 'PowerUser',
sessionTime: 1
}).then((creds) => {
console.log(`here are your temporary access keys:
Access Key: ${creds.accessKey}
Secret Key: ${creds.secretKey}
Session Token: ${creds.sessionToken}`);
});
View the API documentation
To update the API documentation from the source, run npm run docs
Run both node.js and browser tests with npm test
(must have Chrome installed)
FAQs
JavaScript client for the ALKS API, usable in both modern browsers and node.js
The npm package alks.js receives a total of 309 weekly downloads. As such, alks.js popularity was classified as not popular.
We found that alks.js demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 7 open source maintainers 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
Socket now supports Scala and Kotlin, bringing AI-powered threat detection to JVM projects with easy manifest generation and fast, accurate scans.
Application Security
/Security News
Socket CEO Feross Aboukhadijeh and a16z partner Joel de la Garza discuss vibe coding, AI-driven software development, and how the rise of LLMs, despite their risks, still points toward a more secure and innovative future.
Research
/Security News
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.