Skip to content
This repository has been archived by the owner on Nov 8, 2024. It is now read-only.
/ mson-zoo Public archive

Collection of MSON samples that can be used as a showcase or testing purposes

License

Notifications You must be signed in to change notification settings

apiaryio/mson-zoo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
  1. Require the package
ES6
import msonZoo from 'mson-zoo';
ES5
var msonZoo = require('mson-zoo');
  1. 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.

About

Collection of MSON samples that can be used as a showcase or testing purposes

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •