Skip to content

Instantly share code, notes, and snippets.

View pichotweb's full-sized avatar

Ivan Joaquim pichotweb

View GitHub Profile
npm command Yarn command pnpm equivalent bun equivalent
npm install yarn pnpm install bun install
npm install [pkg] yarn add [pkg] pnpm add [pkg] bun add [pkg]
npm uninstall [pkg] yarn remove [pkg] pnpm remove [pkg] bun remove [pkg]
npm update yarn upgrade pnpm update bun update
npm list yarn list pnpm list ?
npm run [scriptName] yarn [scriptName] pnpm [scriptName] bun run [scriptName]
npx [command] yarn dlx [command] pnpm dlx [command] bunx [command]
npm exec yarn exec [c
@signaes
signaes / Rails Console time travel
Created February 18, 2020 22:29
Using active support time helpers to change the current date in the rails console
require 'active_support/testing/time_helpers'
# the class below could have any name
class Tempo
include ActiveSupport::Testing::TimeHelpers
end
# any desidered date
desired_date = Date.today - 2.days