git clone https://github.com/Syc0ms/Instigate-mobile-tasks.git
chmod +x "նիշի-անունը".sh
./"նիշի-անունը".sh
npm install
getGtCommonDivisor - Այս սկրիպտը հնարաւորութիւն է տալիս գտնել երկու թուերի ընդհանուր բաժանարարը։ Այն գրուած է երկու լեզուներով Bash եւ JavaSctipt(Node.js), կարող էք աշխատացնել այն, որը նախընտրում եք։ Լեզուն ընտրելուց հետո, հարկավոր է մտնել ընտրած պանակը, ապա աշխատեցնել սկրիպտը։ Bash - ի դէպքում հարկաւոր է գրել chmod +x commonDivisor.sh հրամանը, ապա ․/commonDivisor.sh եւ նշում թվերը։ Node.js - ի դէպքում, նախ պետք է ներբեռնել prompt-sync գրադարանը npm install հրամանով։ Ապա աշխատեցնել կոդը node index.js հրամանով։
getMaxNum - Այս սկրիպտը հնարաւորութիւն է տալիս գտնել աւգտատերի կողմից մուտքագրած բոլոր թուերից ամենամեծը։ Այն գրուած է երկու լեզուներով Bash եւ JavaSctipt(Node.js), կարող էք աշխատեցնել այն, որը նախընտրում եք։ Լեզուն ընտրելուց հետո, հարկավոր է մտնել ընտրած պանակը, ապա աշխատացնել սկրիպտը։ Bash - ի դէպքում հարկաւոր է գրել chmod +x findMaxNum.sh հրամանը, ապա ․/findMaxNum.sh։ Node.js - ի դէպքում, նախ պետք է ներբեռնել prompt-sync գրադարանը npm install հրամանով։ Ապա աշխատեցնել կոդը node index.js հրամանով։
getOSData - Այս սկրիպտը հնարաւորութիւն է տալիս ստանալ ձեր համակարգչի մասին գրեթէ բոլոր կարեւորագոյն ինֆորմացիաները։ Այն գրուած է երկու լեզուներով Bash եւ JavaSctipt(Node.js), կարող եք աշխատացնել այն, որը նախընտրում եք։ Լեզուն ընտրելուց հետո, հարկաւոր է մտնել ընտրած պանակը, ապա աշխատացնել սկրիպտը։ Bash - ի դեպքում հարկաւոր է գրել chmod +x getOSData.sh հրամանը, ապա ․/getOSData.sh, Node.js-ի դէպքում node index.js
getPrimaryNum - Եւ վերջին սկրիպտը, հնարաւորութիւն է տալիս գտնել 0-ից մինչ աւգտատիրոջ տուած առաւելագոյն սահմանում ընկած հատուածում բոլոր պարզ թվերը։ Ինչպէս եւ բոլոր սկրիպտերը, այնպէս էլ սա, գրուած է երկու լեզուներով։ Եթե ցանկանում եք աշխատեցնել Bash սկրիպտը հարկաւոր է մտնել նրա մէջ, գրել chmod +x simpleNum.sh հրամանը, ապա ./simpleNum.sh հրամանով աշխատեցնել այն։ Node.js - ի դէպքում նոյնպէս հարկաւոր է ներբեռնել prompt-sync գրադարանը npm install հրամանով։ Ապա աշխատեցնել այն node index.js հրամանով
Քանզի աւաղ Node.js-ով հարմար գործիք չգտայ օգտատիրոջ ներմուծած ինֆորմացիայով աշխատելու համար, որոշում կայացրեցի ներբեռնել prompt-sync գրադարանը, որը կատարում է նույն գործառոյթը, ինչ կատարում է prompt - ը Native JavaScript-ում։
https://www.npmjs.com/package/prompt-sync
git clone https://github.com/Syc0ms/Instigate-mobile-tasks.git
chmod +x "scripts-name".sh
Then run the script
./"scripts-name".sh
npm install
And run
node index.js
getGtCommonDivisor - This script gives you an opportunity to find the common divisor of two numbers. It’s written in both languages: Bash and JavaScript(Node.js). You can use the one, which you prefer. After choosing the script, you need to enter to the chosen folder. If you choose Bash, you have to write ./commonDivisor.sh and mention the numbers. In Node.js’s case at first you have to install prompt-sync library with npm install. In the end you can work with code with node index.js command
getMaxNum - This script gives you an opportunity to find the maximum number of numbers that input the user. It’s written in both languages: Bash and JavaScript(Node.js), you can use the one, which you prefer. After choosing the language, you need to enter to the chosen folder. If you choose Bash, you have to write ./findMaxNum.sh. In Node.js’s case at first you have to install prompt-sync library with npm install. In the end you can work with code with node index.js command.
getOSData - This script gives you an opportunity to get the most essential information from your computer. It’s written in both languages: Bash and JavaScript(Node.js). After choosing the language, you have to enter to the chosen folder. If you have chosen Bash, you have to type ./getOSData.sh, in Node.js’s case node index.js.
getPrimaryNum - And the last script gives you an opportunity to find the prime numbers from 0 to the ultimate border, which gave by user. Like the other scripts, this is also written in both languages. If you want to work with Bash script, you have to enter and work with it with ./simpleNum.sh command. In Node.js’s case you have to install prompt-sync library with npm install. In the end you can work with it with node index.js command.
Unfortunately there is no convenient tool to work with informantion from the user and I decided to install prompt-sync library, which does the same function, prompt does in Native JavaScript, but it is not in web, it’s in terminal.