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

codes-postaux

Package Overview
Dependencies
Maintainers
2
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

codes-postaux - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

11

index.js

@@ -1,9 +0,12 @@

var _ = require('lodash');
var index = {};
var data = require('./codes-postaux.json');
require('./codes-postaux.json').forEach(function (entry) {
if (!(entry.codePostal in index)) {
index[entry.codePostal] = [];
}
index[entry.codePostal].push(entry);
});
var index = _.groupBy(data, 'codePostal');
exports.find = function(postalCode) {
return index[postalCode] || [];
};
{
"name": "codes-postaux",
"version": "1.0.2",
"version": "1.0.3",
"description": "French postal codes API for Node.js",

@@ -28,3 +28,2 @@ "repository": {

"dependencies": {
"lodash": "^4.13.1"
},

@@ -31,0 +30,0 @@ "devDependencies": {

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