New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

i-pet-utils

Package Overview
Dependencies
Maintainers
3
Versions
70
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

i-pet-utils

Biblioteca de utilidades para o projeto iPet

  • 1.4.5
  • latest
  • npm
  • Socket score

Version published
Maintainers
3
Created
Source

iPet-utils

Installation

npm install --save i-pet-utils
yarn add i-pet-utils

Development

# install dependencies
yarn install

# build with minification
yarn release

# publish
bin/publish

Import modularizado

import * as iPetUtils from 'i-pet-utils'

import { models } from 'i-pet-utils'
import * as models from 'i-pet-utils/dist/models'

import { Animal } from 'i-pet-utils/dist/models'

import { constants } from 'i-pet-utils'
import * as constants from 'i-pet-utils/dist/constants'

import { castracaoStatus } from 'i-pet-utils/dist/constants'

import locales from 'i-pet-utils/dist/locales'

Constants

import {
  castracaoStatus,
  saldoTipoTask,
  contaCorrenteTipo
} from 'i-pet-utils/dist/constants'

var solicitado = castracaoStatus.SOLICITADO

Locales for i18n

import { locales } from 'i-pet-utils'
import { I18n } from 'paliari-js-utils'

const i18n = new I18n(locales, 'pt_br')

Exemplo de estrutura dos locales:

pt_br:
  buttons:
    save: 'Salvar'
    #...
  db:
    attributes:
      pessoa:
        id: ID
        cpf_cnpj: 'CPF/CNPJ'
        #...
  enums:
    castracao:
      status:
        solicitado: Solicitado
        #...
  errors:
    permission_denied: 'Permissão negada'
    auth:
      invalid_cpf_cnpj: 'O CPF/CNPJ é inválido'
      #...
  messages:
    sign_out_confirm: 'Tem certeza que deseja sair?'
    could_not_load_record: 'Não foi possível carregar o registro'
    #...
#...

FAQs

Package last updated on 11 Jul 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc