Giter Site home page Giter Site logo

hackerrank-cli's Introduction

HackerRank-CLI

Build Status npm version npm awesome

CLI for running code using HackerRank API.

Demo

Demo

Install

Run the following command

$ npm install -g hackerrank-cli

API Key

You can get your HackerRank API Key by visiting HackerRank API page.

Usage

Commands available

$ hackerrank <command>

Commands:
  run     Run code on HackerRank server
  config  Change config file

Options:
  -h, --help  Show help                                     [boolean]

Command run

$ hackerrank run <options>

Options:
  -h, --help      Show help                                 [boolean]
  -s, --source    Source Code file path                    [required]
  -i, --input     Input file path                          [required]
  -l, --language  Language. Change `config` for default.
  -o, --output    Output file path                         [required]

Examples:
  hackerrank run -s A.cpp -i Input00.in -o Output.txt -l 2

Command config

Run $ sudo hackerrank config to change configuration of your installation. This includes default language and API Key.

$ sudo hackerrank config <options>

Options:
  -h, --help  Show help                                     [boolean]
  -l, --list  List language and their code                  [boolean]

Examples:
  sudo hackerrank config -l

Development

Run:

$ git clone https://github.com/manrajgrover/HackerRank-CLI.git
$ cd HackerRank-CLI
$ npm link

This will setup a symbolic link to the CLI. Any changes in source files will now be reflected when running the hackerrank command.

To lint your code, run

$ npm run lint

License

MIT © Manraj Singh

hackerrank-cli's People

Contributors

manrajgrover avatar pdehaan avatar

Stargazers

Lunkhopao Haokip avatar Tom Beckenhauer avatar Phạm Hồng Thái avatar  avatar Vasiliy Vanchuk avatar  avatar Pavel avatar Frederico Bittencourt avatar CT Wu avatar Ankur Tyagi avatar r3nrut avatar Nilesh Prasad avatar Heechan Park avatar Tarasha Khurana avatar Aman Priyadarshi avatar Prerna Kakkar avatar Aman Mahajan avatar

Watchers

James Cloos avatar  avatar Soren avatar  avatar

Forkers

pdehaan lordsoren

hackerrank-cli's Issues

Demos: Move demo gifs to svg based demos

Description

Currently, we make use of gif demos, which is cool, but not as cool as svg-term-cli. Need to explore and move demos to svg based terminal sessions to improve documentation.

Integrate Travis

Integrate Travis with the project with following checks:

  • Code lint
  • Test cases

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.