Skip to content

Instantly share code, notes, and snippets.

View dailymp's full-sized avatar
🏠
Working from home

Daily Miranda Pardo dailymp

🏠
Working from home
View GitHub Profile
// UNION
// Siguiendo la analogía anterior, la unión de tipos sería entendida como
// el operador OR.
// La unión de tipos es muy util para indicar que una determinada
// entidad podrá ser de un tipo u otro, ámbos válidos.
// Por ejemplo, sin unión, tendriamos que recurrir al any para admitir
// argumentos de tipo string o númerico:
@jsagardoy
jsagardoy / npm_command_list.md
Last active April 25, 2018 14:45
Summary of useful npm commands

npm command list

This gists is just a compendium of usefull NPM commands commonly used in different languages.

npm init

This will ask you a bunch of questions, and then write a package.json for you.

It attempts to make reasonable guesses about what you want things to be set to, and then writes a package.json file with the options you've selected.

If you already have a package.json file, it'll read that first, and default to the options in there.