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

ap2json

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ap2json - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

util/parties-abbreviations.js

4

index.js
var fs = require('fs');
var chalk = require('chalk');
var partiesAbbreviation = require('./util/parties-abbreviations.js');

@@ -20,2 +21,5 @@ module.exports = function splitResults(json, directory) {

// add party name to race
race.partyName = partiesAbbreviation[race.party];
fs.writeFileSync(filename, JSON.stringify(race, null, 2));

@@ -22,0 +26,0 @@ console.log(chalk.green('Writing ' + filename));

2

package.json
{
"name": "ap2json",
"version": "1.0.2",
"version": "1.0.3",
"description": "Convert AP API results to many JSON files, one per state-party-racetype combination.",

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

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