Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
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
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.