Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mson-zoo

Package Overview
Dependencies
Maintainers
4
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mson-zoo

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

  • 3.0.0-beta.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
8
increased by300%
Maintainers
4
Weekly downloads
 
Created
Source

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.

Keywords

FAQs

Package last updated on 01 Jun 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc