Socket
Book a DemoInstallSign in
Socket

node-primordials

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-primordials

A userland port of node:lib/internal/per_context/primordials.js

latest
Source
npmnpm
Version
0.0.2
Version published
Maintainers
1
Created
Source

node-primordials

A userland port of node:lib/internal/per_context/primordials.js

Specifically, this is an implementation of the type definitions for the primordials namespace. It does provide some hardening, which can be beneficial in some cases, but since it is possible that this module will be loaded after other modules that modify JavaScript built-ins, it should not be relied upon for serious security guarantees.

Some primordials in Node.js have not been ported, especially related to hardening of iterators, because they incur a much more significant performance impact.

The various XPrototypeConstructor properties are not included, because they're useless. (Can't be called with new because they're bound functions, but must be called with new because they're constructors.)

FAQs

Package last updated on 15 Jun 2023

Did you know?

Socket

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.

Install

Related posts