3.0.0-beta.1 • Published 8 years ago

mson-zoo v3.0.0-beta.1

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

MSON Zoo

MSON Zoo

This repository is a collection of MSON examples, it can be used as a showcase, or for testing purposes.

Getting Started

  1. Install the NPM package

    npm install mson-zoo
  2. Require the package

    ES6
    import msonZoo from 'mson-zoo';
    ES5
    var msonZoo = require('mson-zoo');
  3. Use it

    console.log(msonZoo.samples); // Returns a list of samples
    
    var sample = msonZoo.samples[0];
    
    console.log(sample.fileName); // Name of the file
    console.log(sample.filePath); // Path to the file
    console.log(sample.fileContent); // Content of the file (MSON)
    console.log(sample.dataStructureType); // Type of the data structure (e.g. `object`)
    console.log(sample.dataStructureName); // Name of the data structure (`# Coupon (object)`)
    console.log(sample.dataStructure); // First data structure element
    console.log(sample.dataStructures); // All data structure elements found in the file

License

MIT.

3.0.0-beta.1

8 years ago

2.1.1

8 years ago

2.1.0

8 years ago

2.0.0

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago