You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Instantly share code, notes, and snippets.
🏠
Working from home
Irungaray
🏠
Working from home
Autodidact learner 🥸.
GNU/Linux enjoyer 🐃.
Open Source Enthusiast 😎.
Create Node Package (cli) executable from npm scripts
Creating an executable NPM package and using it
This short guide explains how to create an NPM package that can be called as a script from another project.
For clarity:
The package to execute will be called: Module
The place where you use it: Application
1. Build your module
Create a standard module ignore command line parsing
Un gist es una forma que se tiene para poder compartir código usando GitHub.
Cuando tenemos un código que no es lo suficientemente grande para crear un repositorio, entonces creamos un gist. Aunque gist funciona básicamente cómo un repositorio, ya que se le puede hacer un fork o clonarlo. Así mismo se puede editar y las personas pueden comentar el gist.
Usos del gist
Muchas personas usan gist cómo un portapapeles. Para subir código que siempre sueles usar en diferentes proyectos. También se suele usar cómo una forma de hacer posts. Cómo este que estas viendo.