Export mongodb data into excel using button click
<p>In my meteor app i have a collection name vehicle , and i want to get a excel file of that collection </p>

<pre><code>    {
    "id": "01",
    "make": "toyota",
    "year": [
        2005,
        2006,
        2007,
        2008,
        2009,
        2010
    ],
    "model": "fortuner",
    "type": "a"
} {

    "id": "02",
    "make": "toyota",
    "year": [
        2005,
        2006,
        2007,
        2008,
        2009,
        2010
    ],
    "model": "land cruiser 200",
    "type": "b"
} {
    "id": "03",
    "make": "toyota",
    "year": [
        2005,
        2006,
        2007,
        2008,
        2009,
        2010
    ],
    "model": "land cruiser 200",
    "type": "e"
}
</code></pre>

<p>i want to get a excel file when i click a button </p>

<p>ID   Make     Year        Model    Make</p>

<p>01   toyota   2005-2010   a        xxxx</p>

<p>02   xxx      xxxx        xxx      xxxxxx</p>

<p>how can i do this in meteor ???</p>