Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ptbr

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ptbr

Utility library for brazilian portuguese

  • 1.0.1
  • unpublished
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

ptbr

ptbr é uma biblioteca leve e simples, com funções comuns quando se trabalha com português brasileiro.


instalação:

npm install ptbr


usando: const ptbr = require('ptbr')

Funções

capitalize

ptbr.capitalize('olá'); // Olá

capitalizeEveryWord

ptbr.capitalizeEveryWord('olá da ptbr'); //Olá Da Ptbr

também aceita um parâmetro opcional para ignorar preposições

ptbr.capitalizeEveryWord('olá da ptbr', true); //Olá da Ptbr

ehPreposicao

ptbr.ehPreposicao('da'); //true

removeAcentos

ptbr.removeAcentos('olá da ptbr'); //ola da ptbr

removeCedilha

ptbr.removeCedilha('caçar'); //cacar

Keywords

FAQs

Package last updated on 08 Jul 2020

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