Giter Site home page Giter Site logo

edengh / json Goto Github PK

View Code? Open in Web Editor NEW

This project forked from danamlewis/json

0.0 1.0 0.0 262 KB

Command line or web-based json to CSV converter, plus json split/json resize tool

License: Other

CSS 5.88% JavaScript 68.33% HTML 24.08% Shell 1.70%

json's Introduction

Complex JSON to CSV Converter

A simple JSON to CSV converter that handles objects and nested documents.

  • In the web version, conversion happens inside the browser, in straight JavaScript. It may choke on large files.
  • With complex-csv2json.js, it can be run via the command line. It uses jsonsplit.sh to deal with large files.

To install and run via the command line:

  • npm install -g complex-json2csv
  • type the name of the command and provide an input file
    • complex-json2csv inputfile.json - this will print the output to the screen.
    • complex-json2csv inputfile.json > outputfile.csv - this will print output to a csv file
  • jsonsplit inputfile.json [records] - this will split the file into records based on the [records] size
    • If you do not specify size, it defaults to splitting by 100000

If not yet already done, also remember to install json via the command line:

  • npm install -g json

(Web tool originally from https://github.com/konklone/json; command line tool complex-csv2json and jsonsplit by @DanaMLewis.)

Please file all bugs in the issue tracker.

Read more about the converter and why I (@konklone) built it: "Making JSON as simple as a spreadsheet".

Public domain

This project makes uses of certain externally licensed works, including (but not limited to) Bootstrap, Highlight.js, jQuery and jquery-csv. Any such works retain their original license, even if they have been subsequently modified by me.

All other files in this project are dedicated to the public domain. As spelled out in CONTRIBUTING:

The project is in the public domain within the United States, and copyright and related rights in the work worldwide are waived through the CC0 1.0 Universal public domain dedication.

All contributions to this project will be released under the CC0 dedication. By submitting a pull request, you are agreeing to comply with this waiver of copyright interest.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.