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.
@aestetype/node-social-api
Advanced tools
Social api client for node that support promises and callback. Include:
npm install --save node-social-api
import { Instagram, Twitter, Facebook, Tumblr } from 'node-social-api';
// Instagram
const instagram = new Instagram({
clientId: 'your-client-id',
accessToken: 'user-access-token',
});
// Some get query with promise
instagram.get('users/self').then((data) => {
console.log(data);
});
// Some get query with callback
instagram.get('users/self', (err, data) => {
console.log(data);
});
// Create a new stream and only receive new messages
const stream = instagram.stream('tags/:tag-name/media/recent');
stream.on('message', (message) => {
console.log(message);
});
// Twitter
const twitter = new Twitter({
consumerKey: 'your-consumer-key',
consumerSecret: 'your-consumer-secret',
accessToken: 'your-access-token',
accessTokenSecret: 'your-access-token-secret',
});
// Some get query
twitter.get('media/recent').then((data) => {
console.log(data);
});
// Facebook
const facebook = new Facebook({
appId: 'your-app-id',
appSecret: 'your-app-secret',
});
// Some get query
facebook.get(':some-id').then((data) => {
console.log(data);
});
// Tumblr
const tumblr = new Tumblr({
consumerKey: 'your-consumer-key',
});
// Some get query
tumblr.get('blog/scipsy.tumblr.com/info').then((data) => {
console.log(data);
});
// Github
const github = new Github({
accessToken: 'your-access-token',
});
// Some get query
github.get(':some-github-route').then((data) => {
console.log(data);
});
FAQs
Node social api
We found that @aestetype/node-social-api demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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.
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.