Security News
Supply Chain Attack Detected in @solana/web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Simple page data client tool.
npm install page-data
const page = require('page-data');
const callback = (data, error) => {
console.log(data);
}
page.status('example.com', callback)
/*
{ request: 'GET: http://example.com/',
response:
{ statusCode: 200,
httpVersion: '1.1',
statusMessage: 'OK',
headers:
{ 'accept-ranges': 'bytes',
'cache-control': 'max-age=604800',
'content-type': 'text/html',
date: 'Sun, 28 Feb 2016 03:59:55 GMT',
etag: '"359670651+gzip"',
expires: 'Sun, 06 Mar 2016 03:59:55 GMT',
'last-modified': 'Fri, 09 Aug 2013 23:54:35 GMT',
server: 'ECS (cpm/F9D5)',
vary: 'Accept-Encoding',
'x-cache': 'HIT',
'x-ec-custom-error': '1',
'content-length': '1270',
connection: 'close' } } }
*/
This module return Promise object without callback function.
const page = require('page-data');
let promise = page.status('github.com', options);
promise.then(data => {
console.log(data);
});
Check whether the page is alive. Simple to only the HTTP GET request.
const page = require('page-data');
page.status('https://github.com', options, callback);
/*
{ request: 'GET: https://github.com/',
response:
{ statusCode: 200,
httpVersion: '1.1',
statusMessage: 'OK',
headers:
{ server: 'GitHub.com',
date: 'Sun, 28 Feb 2016 04:04:04 GMT',
'content-type': 'text/html; charset=utf-8',
'transfer-encoding': 'chunked',
connection: 'close',
status: '200 OK',
'cache-control': 'no-cache',
vary: 'X-PJAX, Accept-Encoding',
'x-ua-compatible': 'IE=Edge,chrome=1',
'set-cookie': [Object],
'x-request-id': 'f50cd1559dd7947b46808462684659cd',
'x-runtime': '0.020611',
'content-security-policy': 'default-src *; base-uri \'self\'; block-all-mixed-content; child-src ...
'strict-transport-security': 'max-age=31536000; includeSubdomains; preload',
'public-key-pins': 'max-age=300; pin-sha256="WoiWRyIOVNa9ihaBciRSC7XHjliYS9VwUGOIud4PB18="; pin-sha256="JbQbUG5JMJUoI6brnx0x3vZF6jilxsapbXGVfjhN8Fg="; includeSubDomains',
'x-content-type-options': 'nosniff',
'x-frame-options': 'deny',
'x-xss-protection': '1; mode=block',
'x-served-by': '926b734ea1992f8ee1f88ab967a93dac',
'x-github-request-id': '73A329BC:1143:55012B9:56D271B3' } } }
*/
GET tls information.
const page = require('page-data');
page.tls('github.com', options, callback);
/*
{ subject:
{ businessCategory: 'Private Organization',
jurisdictionC: 'US',
jurisdictionST: 'Delaware',
serialNumber: '5157550',
street: '548 4th Street',
postalCode: '94107',
C: 'US',
ST: 'California',
L: 'San Francisco',
O: 'GitHub, Inc.',
CN: 'github.com' },
issuer:
{ C: 'US',
O: 'DigiCert Inc',
OU: 'www.digicert.com',
CN: 'DigiCert SHA2 Extended Validation Server CA' },
valid_from: 'Apr 8 00:00:00 2014 GMT',
valid_to: 'Apr 12 12:00:00 2016 GMT',
infoAccess:
{ 'OCSP - URI': [ 'http://ocsp.digicert.com' ],
'CA Issuers - URI': [ 'http://cacerts.digicert.com/DigiCertSHA2ExtendedValidationServerCA.crt' ] } }
*/
GET page meta data(title, keywords, description, charset)
const page = require('page-data');
page.mata('https://github.com', options, callback);
/*
{ title: 'GitHub · Where software is built',
charset: 'utf-8',
keywords: null,
description: 'GitHub is where people build software. More than 12 million people use GitHub to discover, fork, and contribute to over 31 million projects.' }
;
*/
MIT © kazu69
FAQs
simple page data get client tool
The npm package page-data receives a total of 3 weekly downloads. As such, page-data popularity was classified as not popular.
We found that page-data 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
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
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.