
Research
/Security News
Contagious Interview Campaign Escalates With 67 Malicious npm Packages and New Malware Loader
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.
stackexchange-api
Advanced tools
A Node.js wrapper for the StackExchange API
Disclaimer: WIP. Doesn't work with many endpoints yet.
npm install --save stackexchange-api
yarn add stackexchange-api
Including in a project:
import {StackExchange} from 'stackexchange-api';
const StackExchangeApi = require('stackexchange-api');
Example usage:
import {StackExchange} from 'stackexchange-api';
StackExchange.search({ // Equivalent to the /search endpoint. Go to https://paul-soporan.github.io/stackexchange-api/classes/stackexchange.html#search for details.
inTitle: 'nodejs',
site: 'stackoverflow'
}).then((result) => {
console.log(result);
// Output: Wrapper<Question>
console.log(result.items);
// Output: an array of Questions (Question[])
console.log(result.items[0]);
// Output: the first Question
console.log(result.items[0].viewCount);
// Output: the view count of the first Question
});
Release Version 1.2.0 (2019-12-11)
Filters Update
filter
property as an option. The filter
property can be a Filter
object or a string (Filter.filter
/ 'default'
/ 'withbody'
/ 'none'
/ 'total'
)StackExchange
class:
createFilter()
decodeFilters()
StackExchange
class filterablePost
class, corresponding to Type postStackExchange
class:
getPosts()
getPostsByIds()
null
if missingreadonly
strict
and other stricter compiler options in tsconfig.jsonFAQs
A Node.js wrapper for the StackExchange API
We found that stackexchange-api 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.
Research
/Security News
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.
Security News
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.