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

@guilhermerodrigues680/random-color-generator

v0.0.3-alpha.1

Published

Publicando meu primeiro pacote no npm

Downloads

26

Readme

Random color generator

npm (scoped) License: MIT install size npm bundle size (minified) github1s npm

Publicando meu primeiro pacote no npm.

Gerador de cores aleatórias

Instalando

Usando npm:

$ npm install @guilhermerodrigues680/random-color-generator
// CommonJS
const randomColorGenerator = require('@guilhermerodrigues680/random-color-generator');

// ES6 modules
import randomColorGenerator from '@guilhermerodrigues680/random-color-generator';

Usando jsDelivr CDN:

Load project hosted on npm

  • https://cdn.jsdelivr.net/npm/package@version/file
<script src="https://cdn.jsdelivr.net/npm/@guilhermerodrigues680/random-color-generator"></script>

Load GitHub release, commit, or branch

Note: we recommend using npm for projects that support it

  • https://cdn.jsdelivr.net/gh/user/repo@version/file
<script src="https://cdn.jsdelivr.net/gh/guilhermerodrigues680/[email protected]/dist/random-color-generator.js"></script>

Usando unpkg CDN:

  • unpkg is a fast, global content delivery network for everything on npm
  • unpkg.com/:package@:version/:file
<script src="https://unpkg.com/@guilhermerodrigues680/random-color-generator"></script>

Usando Skypack CDN:

  • Load optimized npm packages with no install and no build tools.
  • https://cdn.skypack.dev/@scope/package-name
<script type="module">
  import guilhermerodrigues680RandomColorGenerator from 'https://cdn.skypack.dev/@guilhermerodrigues680/random-color-generator';
</script>

Funcionalidades CDN

Anexe um / no final de um URL para ver uma lista de todos os arquivos em um pacote.

  • https://cdn.jsdelivr.net/npm/package@version/folder/
  • https://cdn.jsdelivr.net/gh/user/repo@version/folder/
  • unpkg.com/:package@:version/:file/

jsdelivr: add ".min" to any JS/CSS file to get a minified version, if one doesn't exist, we'll generate it for you

  • https://cdn.jsdelivr.net/npm/package@version/file.min.js
  • https://cdn.jsdelivr.net/gh/user/repo@version/file.min.js

Skypack:

View metadata about any package.

  • https://cdn.skypack.dev/:packageSpecifier?meta

Minified (?min)

  • https://cdn.skypack.dev/preact?min

Package Export

  • https://cdn.skypack.dev/preact/hooks

NPM

# Init
$ npm set init-author-email <user.email.com>
$ npm set init-author-name <user>
$ npm set init-license MIT
$ npm adduser
$ npm init

# Publish
$ npm version [<newversion> | major | minor | patch | premajor | preminor | prepatch | prerelease [--preid=<prerelease-id>] | from-git]
$ npm publish
$ npm publish --access=public
$ npm unpublish @guilhermerodrigues680/[email protected]
$ npm deprecate @guilhermerodrigues680/random-color-generator@"< 1.0.0" "bug crítico corrigido em v1.0.0"

Versionamento

Este projeto segue o seguinte o Versionamento Semântico 2.0.0.

Licença

O código fonte do projeto está sob a licença MIT License, disponível no arquivo LICENSE deste projeto.

Autor

Guilherme Rodrigues - github.com/guilhermerodrigues680