Ruby vs Javascript
Command description | Ruby | Javascript |
---|---|---|
create a Gemfile | gem init | npm init -y |
Dependency config file | Gemfile | package.json |
Install dependencies globally | gem install |
npm install -g |
Add to dependency config file | bundle add |
npm install |
Install dependency config file | bundle install | npm install |
Run a package | bundle exec |
npx |