npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

random-msg-generator

v1.1.0

Published

Random message generator

Downloads

3

Readme

random-msg-generator

Random message generator

random-msg-generator

Whenever I start a new project, I don't know what to write for the first commit. After doing a “git init” there is technically nothing there...

Install

npm install -g random-msg-generator

Usage

 random-msg-generator

Contributing

If someone wants to add or improve something, I invite you to collaborate directly in this repository: random-str-msg

License

funny-commit is released under the MIT License.

npm init -y => Con este comando + el flag -y inicializamos npm en nuestro nuevo repositorio, con la información por defecto de repositorios anteriores.

La clave “bin” se pone en el archivo package.json para asignarle los archivos que son ejecutables, osea, en “bin” se asignan las rutas de los archivos js que contienen el codigo de las llamadas de las funciones del paquete creado y segun entiendo si un codigo contiene llamadas de funciones es porque dicho codigo es un ejecutable.

¿Si lo anterior es correcto quiere decir que la clave “bin” solo se debe poner en el archivo package.json si el paquete creado es un ejecutable, osea, si el paquete es una libreria no debo poner “bin” en el archivo package.json?

Importante saber para que es el elemento bin, nos permite indicarle el nombre del paquete y donde se encuentra el archivo global que va a utilizar.

Tambien le indicamos con elemento preferGlobal, que será un paquete de forma global.

npm link => Crea un enlace simbólico, para reconocer a este paquete dentro del listado de paquetes de npm, sin publicarlo todavía pero si verificar que cumple todo lo requerido:

Si no tiene vulnerabilidades, significa que está todo correcto y puede ser perfectamente integrado al listado de paquetes de npm.

Antes de integrarlos, tenemos que probarlo.

Para probarlo se deben seguir los siguientes pasos

pwd => para saber exactamente donde se encuentra la ruta de nuestra dependencia.

npm install g ruta-de-la-dependencia(pwd) => Simulará la instalación de la dependencia en nuestro local

Luego ya podemos correr nuestro programa en consola:

random-msg-generator

Ya verificado que efectivamente funciona, podemos seguir con la creación de la cuenta y :

Vamos a la terminal

npm adduser

Añadimos los datos que nos pide la consola …

Y se publica el paquete 🙌🏻

npm publish

Se busca en npm la dependencia y se verifica que este subida !

Semántica de versionados https://semver.org/lang/es/