
Research
/Security News
Weaponizing Discord for Command and Control Across npm, PyPI, and RubyGems.org
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
as-console
Advanced tools
_____ _____ _____ _____ _____ _____ _____ __ _____ | _ || __| ___ | || || | || __|| || | | __| | ||__ ||___|| --|| | || | | ||__ || | || |__ | __| |__|__||_____| |__
_____ _____ _____ _____ _____ _____ _____ __ _____ | _ || __| ___ | || || | || __|| || | | __| | ||__ ||___|| --|| | || | | ||__ || | || |__ | __| |__|__||_____| |_____||_____||_|___||_____||_____||_____||_____| v1.0.1
AssemblyScript's implementation of console.log
only accepts a string
.
As a result, you can only log string
.
// 😢
const foo = 3.14;
console.log(foo);
> ERROR: f64 not assignable to string. Must call .toString()!
This library fixes that
// 😊
const foo = 3.14;
console.log(foo);
// 3.14
Not only can you log primitive types, but it also supports
npm install as-console
import * as console from "as-console";
console.log("Hello from AssemblyScript!");
console.log([
"It supports other types"
]);
console.log([["Other","than","strings"]]);
const set = new Set<string[]>();
set.add(["and complex types"]);
console.log(set);
Contact me at:
Email: me@jairus.dev
GitHub: JairusSW
Discord: jairussw
Please submit an issue to https://github.com/JairusSW/as-console/issues if you find anything wrong with this library
FAQs
JavaScript style console for AssemblyScript. Pretty printing, structuring, and more.
The npm package as-console receives a total of 58 weekly downloads. As such, as-console popularity was classified as not popular.
We found that as-console demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 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.
Research
/Security News
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.