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

space-cli

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

space-cli - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

false/_logs/2018-12-30T20_13_41_104Z-debug.log

2

package.json
{
"name": "space-cli",
"version": "1.0.0",
"version": "1.1.0",
"description": "CLI for space information",

@@ -5,0 +5,0 @@ "main": "src/index.js",

@@ -21,11 +21,13 @@ # Space CLI

`space launch` - shows id, launch name, time (scheduled attempted) and available live stream options for the next rocket launch
`space launch -v --tz Asia/Shanghai -n 5` - shows id, launch name, time (scheduled attempted) converted to CST time zone, name of a rocket, and missions (with type and description) for the next 5 launches
`space launch -v --tz Asia/Shanghai -n 5` - shows id, launch name, time (scheduled attempted) converted to CST time zone, name of a rocket, and missions (with type and description) for the next 5 launches
`space news` - shows news articles (source, title and link) from current and previous day, grouped by date
## Settings
Settings allow you to store preferred values (e.g. time zone) which will be automatically used during [empty] option call. Settings can be found in `<user_dir>/.spacecli` dir.
Settings allow you to store preferred values (e.g. time zone), which will be automatically used with a command unless other value is provided (in-command values are prioritized over settings).
Settings file (`settings.json`) can be found in `spacecli`, placed in system's respective config directory (set with `XDG_CONFIG_HOME`, or `~/.config` for *nix and `~/AppData/Local/` for win)
**Example commands:**
`space settings --tz Asia/Shanghai` - save Asia/Shanghai as preferred time zone
`space launch --tz` - Command will automatically use Asia/Shanghai for time convertion, unless different time zone is specified
`space launch --tz` - Command will automatically use Asia/Shanghai for time conversion, unless different time zone is specified
Space CLI is in active development, to see currently available commands and options, use `space -h`.

@@ -7,2 +7,3 @@ #!/usr/bin/env node

const rocketLaunch = require('./modules/rocketLaunch');
const news = require('./modules/news');
const info = require('./modules/info');

@@ -32,2 +33,12 @@ const settings = require('./modules/settings');

)
.command('news', 'Get recent news articles',
function (yargs) {
return yargs
.option('n', {
alias: ['number', 'limit'],
describe: 'Define amount of articles to show'
});
},
news.listArticles
)
.command('settings', 'Set default settings',

@@ -34,0 +45,0 @@ function (yargs) {

@@ -6,5 +6,5 @@ const chalk = require('chalk');

const welcome = chalk`{green Welcome to Space CLI} - a CLI for space information`;
const credits = `Credits:\nhttps://launchlibrary.net/ - API documentation for upcoming launches`;
const credits = `Credits:\nhttps://launchlibrary.net/ - API for upcoming launches\nhttps://www.spaceflightnewsapi.net/ - API for space information like news, manned flights or ISS status`;
helpers.printMessage(`${welcome}\n\n${credits}`);
};
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