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

@brazilian-utils/format-cpf

Package Overview
Dependencies
Maintainers
3
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@brazilian-utils/format-cpf - npm Package Compare versions

Comparing version 0.1.6 to 0.1.8

LICENSE

2

dist/index.umd.js

@@ -1,2 +0,2 @@

!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r(require("@brazilian-utils/helper-only-numbers"),require("@brazilian-utils/helper-is-last-char")):"function"==typeof define&&define.amd?define(["@brazilian-utils/helper-only-numbers","@brazilian-utils/helper-is-last-char"],r):e.formatCpf=r(null,null)}(this,function(e,r){e=e&&e.hasOwnProperty("default")?e.default:e,r=r&&r.hasOwnProperty("default")?r.default:r;var n=11,i=[2,5],t=[8];return function(u){if(!u)return"";var l=e(u);return l.slice(0,n).split("").reduce(function(e,n,u){var a=""+e+n;if(!r(u,l)){if(i.includes(u))return a+".";if(t.includes(u))return a+"-"}return a},"")}});
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r(require("@brazilian-utils/helper-only-numbers"),require("@brazilian-utils/helper-is-last-char")):"function"==typeof define&&define.amd?define(["@brazilian-utils/helper-only-numbers","@brazilian-utils/helper-is-last-char"],r):e.formatCpf=r(e.onlyNumbers,e.isLastChar)}(this,function(e,r){e=e&&e.hasOwnProperty("default")?e.default:e,r=r&&r.hasOwnProperty("default")?r.default:r;var i=11,n=[2,5],t=[8];return function(u){if(!u)return"";var l=e(u);return l.slice(0,i).split("").reduce(function(e,i,u){var a=""+e+i;if(!r(u,l)){if(n.includes(u))return a+".";if(t.includes(u))return a+"-"}return a},"")}});
//# sourceMappingURL=index.umd.js.map
{
"name": "@brazilian-utils/format-cpf",
"description": "Return CPF formatted with mask.",
"version": "0.1.6",
"version": "0.1.8",
"main": "dist/index.js",

@@ -31,11 +31,12 @@ "umd:main": "dist/index.umd.js",

"devDependencies": {
"microbundle": "^0.5.1"
"microbundle": "^0.6.0"
},
"dependencies": {
"@brazilian-utils/helper-is-last-char": "^0.1.5",
"@brazilian-utils/helper-only-numbers": "^0.1.3"
"@brazilian-utils/helper-is-last-char": "^0.1.7",
"@brazilian-utils/helper-only-numbers": "^0.1.5"
},
"publishConfig": {
"access": "public"
}
},
"gitHead": "be32f1e24005a065474b554e05bbc1d38cc12323"
}

Sorry, the diff of this file is not supported yet

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