New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

gh-system

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gh-system - npm Package Compare versions

Comparing version 1.0.1 to 1.1.0

github.js

25

index.js
#!/usr/bin/env node
const axios = require('axios');
const chalk = require('chalk');
const getTravisCIStatus = require('./travisci.js');
const getGitHubStatus = require('./github.js');
const cyan = chalk.cyan;
const purple = chalk.magenta;
const yellow = chalk.yellow;
function createRow(event) {
return `
--------------------------------------------------------------------------------------------------------------------------------------------------------
${cyan('Date')}: ${purple(new Date(event.created_on).toLocaleString('en-US', { timeZone: 'America/New_York' }))}
${cyan('Status')}: ${event.status}
${cyan('Message')}: ${yellow(event.body)}
`
async function init() {
getGitHubStatus();
getTravisCIStatus()
}
axios.get('https://status.github.com/api/messages.json').then((res) => {
const data = res.data.map((d) => createRow(d)).reverse().join('');
console.log('data: ', data);
});
init();
{
"name": "gh-system",
"version": "1.0.1",
"version": "1.1.0",
"description": "",

@@ -18,4 +18,5 @@ "main": "index.js",

"axios": "^0.18.0",
"chalk": "^2.4.1"
"chalk": "^2.4.1",
"easy-table": "^1.1.1"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc