Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
With this command you would be able to enjoy Codewars, a site where you can practice your coding skills
gem install codewars_cli
The start working you would need an account in Codewars, if you have it already great!. To start using the CLI you will need setup up a few things first.
##Comands
There are a few commands you can use to configuration your CLI, the most important one is to setup your api_key, first you will need to get it from your account of Codewars.
To setup your api_key codewars config api_key YOUR_API_KEY
.
There are other options you can configure language and folder.
The language is your favorite option for downloading. Also you can specify everytime you start a new session what language you want use.
To setup your language codewars config language LANGUAGE
.
ruby
javascript
java
coffeescript
haskell
clojure
c
python
The folder option is where all your description file will be downloaded.
The file structure will be: ~/YOUR_FOLDER/#{NAME_OF_THE_KATA}/#{LANGUAGE}
To setup your language codewars config folder FOLDER
.
Once you have finish the setup up, you can changed but you will have to pass a flag update
to tell the application to overwrite it.
To overwrite your api_key codewars config api_key YOUR_API_KEY --update
.
Display all the information related to a Codewars user in your Terminal.
codewars user USERNAME_OR_ID
will display the information well formatted for your eyes.
Start a new session of training and download all the information related to a new kata.
This command will create a description.md
file with all the information of the Kata and some metadata that is need it for submiting the kata later.
Also it will create a solution.{LANGUAGE_EXTENSION}
file where you should place your code in other to be uploaded when submitting the kata.
codewars next_kata
Valid languages
To specify a a different language just add a new param as the language you want to train.
codewars next_kata javascript
When submitting a kata, the application will upload your code to the Codewars server and will wait for the server to respond with the result, depending on the respond, the kata could be finalized or keep working on it.
To submit use codewars submit KATA_NAME
By Default it will use you predefined language, but you can always specify a different one:
codewars submit KATA_NAME --language=LANGUAGE
Valid languages
In case the name is not correct it will display a formatted list with all your katas order by language to help you.
This is the last step of the process.
To finish a kata type codewars finalize KATA_NAME
As well you can specify the language of the kata codewars finalize KATA_NAME --language=LANGUAGE
Valid languages
It will close the kata four you.
Bug reports and pull requests are welcome on GitHub at https://github.com/GustavoCaso/codewars_cli. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.
The gem is available as open source under the terms of the MIT License.
FAQs
Unknown package
We found that codewars_cli 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.