
Security News
AGENTS.md Gains Traction as an Open Format for AI Coding Agents
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
xmlhttprequest-ts
Advanced tools
xmlhttprequest-ts is a typescript wrapper for the built-in http client to emulate the browser XMLHttpRequest object and allow isomorphic code that runs in the browser and in node.js.
xmlhttprequest-ts is a typescript wrapper for the built-in http client to emulate the browser XMLHttpRequest object and allow isomorphic code that runs in the browser and in node.js.
This can be used with JS designed for browsers to improve reuse of code and allow the use of existing libraries.
Ready for AOT and treeshaking in combination with Angular and other modern typescript frameworks.
Here's how to include the module in your project using the typescript method:
import { XMLHttpRequest } from 'xmlhttprequest-ts';
var xhr = new XMLHttpRequest();
Here's how to include the module in your project using the normal node.js method:
const { XMLHttpRequest } = require("xmlhttprequest-ts");
var xhr = new XMLHttpRequest();
Note: use the lowercase string "xmlhttprequest-ts" in your require(). On case-sensitive systems (eg Linux) using uppercase letters won't work.
Since the XMLHttpRequest API is stable this library's API is stable as well. Major version numbers indicate significant core code changes. Minor versions indicate minor core code changes or better conformity to the W3C spec.
MIT license. See LICENSE for full details.
For a list of open issues or to report your own visit the github issues page.
This is a typescript port of this library and the following issues were fixed:
FAQs
xmlhttprequest-ts is a typescript wrapper for the built-in http client to emulate the browser XMLHttpRequest object and allow isomorphic code that runs in the browser and in node.js.
The npm package xmlhttprequest-ts receives a total of 7,306 weekly downloads. As such, xmlhttprequest-ts popularity was classified as popular.
We found that xmlhttprequest-ts 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
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.