Skip to content

this is the Source code of Node js and Typescript Based Calculator Runs on the Command line Interface , its package Also published at NPM Marketplace with the name : npx ahmedcacli

Notifications You must be signed in to change notification settings

Ansari1120/CLI-Based-Calculator-Using-Node-js-And-TypeScript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

this is the Source code of Node js and Typescript Based Calculator Runs on the Command line Interface , its package Also published at NPM Marketplace. to run calculator do :

  1. npm i project-04-cli-based-calculator-node-and-typescript

  2. npx ahmedcacli

  3. initialized typescript enviroment through npx tsc -init

  4. intialized node js enviroment npm init -yes

  5. npm i chalk

  6. npm i chalk-animation

  7. npm i inquirer

  8. npm i nanospinner

  9. npm install typescript --save-dev

  10. npm i -g typescript

  11. npx tsc --init

  12. npm i ts-node-dev

  13. npm install nodemon --save-dev

  14. npm install @types/node --save-dev

15)Add .js file with this at top : #! /usr/bin/env node

16)setup Json file(example) :

"bin": { "multiply": "bin/index.js" },

17)Test package locally(for example :

npx multiply

18)Add Dependencies and import it to your main file :

npm i prompt-sync

19)create or login your npm account

npm login

20)publish your package

  1. npm publish

  2. added calculator basic opetaions features - , + , * , /

About

this is the Source code of Node js and Typescript Based Calculator Runs on the Command line Interface , its package Also published at NPM Marketplace with the name : npx ahmedcacli

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published