json.excel

0.0.3 • Public • Published

json.excel

json to excel,or excel to json

json file to excel file,or excel file to json file

Getting Started

whith grunt

This plugin requires Grunt ~0.4.1 If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:

npm install json.excel

Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:

go:{
   options:{
        json:json_file,
        excel:excel_file,
        to:'json',
        formating:true
    },
    dist:{}
}


grunt.loadNpmTasks('json.excel');

grunt.registerTask('default',['go']);

excel file format

first row is keys,from second rows are datas,like this:

|--a--|--b--|--c--|
|--1--|--2--|--3--|
|--3--|--2--|--1--|

build this fromat json file,like this:

{
    "data":[{
        "a":"1",
        "b":"2",
        "c":"3"
    }{
        "a":"3",
        "b":"2",
        "c":"1"
    }]
}

Package Sidebar

Install

npm i json.excel

Weekly Downloads

2

Version

0.0.3

License

MIT

Last publish

Collaborators

  • donghanji