
Security News
PEP 810 Proposes Explicit Lazy Imports for Python 3.15
An opt-in lazy import keyword aims to speed up Python startups, especially CLIs, without the ecosystem-wide risks that sank PEP 690.
as-console
Advanced tools
JavaScript style console for AssemblyScript. Pretty printing, structuring, and more.
_____ _____ _____ _____ _____ _____ _____ __ _____ | _ || __| ___ | || || | || __|| || | | __| | ||__ ||___|| --|| | || | | ||__ || | || |__ | __| |__|__||_____| |_____||_____||_|___||_____||_____||_____||_____| v7.0.0
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 62 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.
Security News
An opt-in lazy import keyword aims to speed up Python startups, especially CLIs, without the ecosystem-wide risks that sank PEP 690.
Security News
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.