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

jsoncsv

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jsoncsv - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

bin/jsoncsv

55

example/data.json
[
{
"object": {
"FROM DATE": "01/24/12",
"THRU DATE": "01/31/12",
"CARRIER ID": "2838",
"ACCOUNT ID": "2838000",
"GROUP ID": "000",
"FACILITY ID": "",
"MEMBER ID": "16617725301",
"MEMBER First Name": "JOHNNIE",
"MEMBER Last Name": "TESTER",
"PRESC ID": "1843533671",
"PCP ID": "",
"PRESC NAME": "PRESCRIBER",
"PHARMACY": "1546424753",
"RX #": "6438741",
"DATE DISP": "01/11/12",
"REFILL": "01",
"DRUG NAME": "FUROSEMIDE TAB 40MG",
"NDC": "00378-0216-10",
"#DAYS SUP": "30",
"Decimal QTY": "60.000",
"SUBMITTED COST": "9.57",
"APPROVED COST": "3.49",
"OPAR": ".00",
"FEE": "1.50",
"INC FEE": ".00",
"TAX": ".00",
"PAT PAY": ".00",
"MGMT FEE": ".00",
"AMOUNT PAID": "4.99",
"batch_name": "test",
"billing_period": "201202",
"disp_ndc": "00378021610",
"cost": 0.08316666666666667,
"_events": {},
"prescriberId": 126,
"patientId": 345,
"awp": 0.1595,
"aac": 0,
"medication_type": "generic",
"prescription_type": "rx"
},
"verb": "validatingClaim",
"_events": {}
}
{
"data": {
"key1": "val1",
"key2": "val2",
"key3": "val3"
},
"action": "testing"
}
]
{
"name": "jsoncsv",
"description": "A JSON to csv converter for nodeJS",
"version": "0.0.1",
"version": "0.0.2",
"homepage": "",
"author": "Kris Windham <krsiwindham@gmail.com>",
"repository": {
"type": "git",
"url": "git://github.com/beautifulnode/bam.git"
},
"private": false,
"main": "./lib",
"dependencies": {},
"dependencies": {
"flatiron": "*",
"pkginfo": "*",
"path": "*"
},
"devDependencies": {

@@ -17,2 +25,5 @@ "coffee-script": ">= 1.1.x",

},
"bin": {
"jsoncsv": "./bin/jsoncsv"
},
"engines": {

@@ -19,0 +30,0 @@ "node": "0.4 || 0.6 || 0.7"

@@ -14,4 +14,3 @@

- a json to csv library in javascript/coffeescript
WIP. this is specifically geared toward caremark data.
am working on allowing any json format.
WIP.

@@ -31,4 +30,6 @@ ## Install

COLUMNS = ['key1','key2','key3','action']
data = fs.readFileSync('data.json').toString()
jsoncsv.parse data, (err, row) ->
jsoncsv.parse data, COLUMNS, (err, row) ->
console.log row

@@ -45,5 +46,7 @@

COLUMNS = ['key1','key2','key3','action'];
data = fs.readFileSync('data.json').toString();
jsoncsv.parse(data, function(err, row) {
jsoncsv.parse(data, COLUMNS, function(err, row) {
return console.log(row);

@@ -50,0 +53,0 @@ });

Sorry, the diff of this file is not supported yet

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