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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@linkiez/jcm-library

v3.24.1

Published

Biblioteca JCM para modelos e utilitários compartilhados.

Readme

@linkiez/jcm-library

semantic-release: angular npm version License: MIT

Biblioteca compartilhada JCM contendo modelos, interfaces e utilitários para os projetos JCMfront2 e JCMserver3.

Instalação

Via GitHub (Recomendado para desenvolvimento)

npm install linkiez/JCMlibrary#v1.0.0
# ou
yarn add linkiez/JCMlibrary#v1.0.0

Via NPM (quando publicado)

npm install @linkiez/jcm-library
# ou
yarn add @linkiez/jcm-library

Uso

import {
  Produto,
  IProduto,
  Usuario,
  IUsuario,
  AcaoDisposicao,
} from "@linkiez/jcm-library";

// Usando interfaces
const produto: IProduto = {
  id: 1,
  nome: "Produto Exemplo",
  // ... outras propriedades
};

// Usando classes
const produtoModel = new Produto(produto);

// Usando enums
const acao = AcaoDisposicao.APROVADO;

Estrutura

  • Models: Classes de modelo para entidades
  • Interfaces: Definições de tipos TypeScript
  • Enums: Enumerações compartilhadas

Desenvolvimento

# Instalar dependências
yarn install

# Build
yarn build

# Testes
yarn test

# Lint
yarn lint

Versionamento e Releases

Este projeto usa semantic-release para versionamento automático e publicação de pacotes. Releases são criadas automaticamente com base nas mensagens de commit seguindo a Convenção de Commits Angular.

Convenção de Commits

Use os seguintes prefixos nas mensagens de commit:

  • feat: Nova funcionalidade (gera versão minor)
  • fix: Correção de bug (gera versão patch)
  • docs: Mudanças na documentação
  • style: Formatação, ponto e vírgula faltando, etc
  • refactor: Refatoração de código (gera versão patch)
  • perf: Melhoria de performance (gera versão patch)
  • test: Adição de testes
  • build: Mudanças no build ou dependências
  • ci: Mudanças em CI/CD
  • chore: Outras mudanças
  • revert: Reverter commit anterior

Breaking Changes

Para indicar mudanças incompatíveis (versão major), adicione BREAKING CHANGE: no rodapé do commit:

feat: adicionar nova API de validação

BREAKING CHANGE: A função validateProduct agora retorna Promise em vez de valor síncrono

Exemplos

# Patch release (3.3.4 -> 3.3.5)
git commit -m "fix: corrigir validação de CPF"

# Minor release (3.3.4 -> 3.4.0)
git commit -m "feat: adicionar novo modelo de Nota Fiscal"

# Major release (3.3.4 -> 4.0.0)
git commit -m "feat: refatorar API de produtos

BREAKING CHANGE: Removido suporte para formato legado de produtos"

Como funciona

  1. Faça commits seguindo a convenção acima
  2. Faça push para a branch main
  3. O GitHub Actions executa automaticamente:
    • Análise dos commits para determinar a versão
    • Atualização do CHANGELOG.md
    • Criação de uma nova tag Git
    • Publicação do pacote no NPM
    • Criação de um GitHub Release

Validação de Commits

O projeto usa commitlint para validar mensagens de commit. Se você tentar fazer um commit com formato inválido, ele será rejeitado:

# ❌ Inválido
git commit -m "atualizar documentação"

# ✅ Válido
git commit -m "docs: atualizar documentação"

Licença

MIT