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

js-brasil

Package Overview
Dependencies
Maintainers
1
Versions
86
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

js-brasil - npm Package Compare versions

Comparing version 1.3.2 to 1.3.3

20

dist/index.js
"use strict";
var __assign = (this && this.__assign) || function () {
__assign = Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
}
return t;
};
return __assign.apply(this, arguments);
};
Object.defineProperty(exports, "__esModule", { value: true });
var utils_1 = require("./src/utils");
var utils = require("./src/utils");
var validate_1 = require("./src/validate");

@@ -28,10 +39,7 @@ var inscricaoestadual_1 = require("./src/inscricaoestadual");

};
exports.utilsBr = {
isPresent: utils_1.isPresent,
MASKS: mask_1.MASKS,
exports.utilsBr = __assign({}, utils, { MASKS: mask_1.MASKS,
PLACAS_RANGE: placa_1.PLACAS_RANGE,
ESTADOS: estados_1.ESTADOS
};
ESTADOS: estados_1.ESTADOS });
exports.maskBr = mask.maskBr;
exports.fakerBr = faker.fakerBr;
//# sourceMappingURL=index.js.map

@@ -72,2 +72,11 @@ "use strict";

exports.getAllDigits = getAllDigits;
function currencyToNumber(input) {
var vals = input.split(' ');
if (vals.length === 2) {
input = vals[1];
}
input = input.replace(/\./g, '').replace(',', '.');
return parseFloat(input);
}
exports.currencyToNumber = currencyToNumber;
//# sourceMappingURL=utils.js.map

@@ -0,5 +1,3 @@

import * as utils from './src/utils';
import {
isPresent
} from './src/utils';
import {
valida_cep, validate_cnpj, validate_cpf, validate_telefone,

@@ -34,3 +32,3 @@ validate_currency, validate_percentage, validate_rg, validate_time, validate_titulo, validate_processo, validate_celular, validate_renavam, validate_number

export const utilsBr = {
isPresent,
...utils,
MASKS,

@@ -37,0 +35,0 @@ PLACAS_RANGE,

{
"name": "js-brasil",
"version": "1.3.2",
"version": "1.3.3",
"description": "Javascript Utils para Brasil (cpf, cnpj...)",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -15,7 +15,11 @@ # js-brasil

Módilos ValidateBR, MaskBR e FakerBR para nodejs ou browser.
Módulos ValidateBR, MaskBR e FakerBR para nodejs ou browser.
Plugins para [Angular](https://github.com/mariohmol/ng-brazil) e
[React](https://github.com/mariohmol/react-brazil)
Veja tudo em ação no Gerador Brasileiro - http://geradorbrasileiro.com/
# ValidateBR

@@ -117,5 +121,12 @@

Utilize em angular 6 com:
Utilize em angular 2 a 7 com:
* ng-brazil - angular support for brazil apps - https://github.com/mariohmol/ng-brazil
# React
Utilize com React:
* react-brazil - react support for brazil apps - https://github.com/mariohmol/react-brazil

@@ -73,2 +73,11 @@ export function isPresent(obj: any): boolean {

return;
}
export function currencyToNumber(input){
const vals = input.split(' ');
if(vals.length===2){
input = vals[1];
}
input = input.replace(/\./g,'').replace(',','.');
return parseFloat(input);
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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