New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

jsvfl

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jsvfl

VFL AST Parser for Javascript

latest
npmnpm
Version
0.1.6
Version published
Maintainers
1
Created
Source

JSVFL

Javascript VFL Parser/AST Generator

Install

npm install jsvfl

Use

var JSVFL = require('jsvfl');

//...

var vflParser = new JSVFL();
    
console.log(vflParser('V:|-[find]-[findNext(200)]-50-[findField(>=20,<=100)]-|'));

/**
  {
    orientation: 1, // ENUM for vertical orientation
    constraints: [{
      views: [{
        name: 'superView',
        sizing: [],
        spacing: {
          margin: 'bottom',
          value: 8
        }
      },
      {
        name: 'find',
        sizing: [],
        spacing: {
          margin: 'bottom',
          value: 8
        }
      }]
    },
    {
      views: [{
        name: 'find',
        sizing: [],
        spacing: {
          margin: 'bottom',
          value: 8
        }
      },
      {
        name: 'findNext',
        sizing: [{
          relation: 'height',
          value: 200
        }],
        spacing: {
          margin: 'bottom'
          value: 50
        }
      }]
    },
    {
      views: [{
        name: 'findNext',
        sizing: [{
          relation: 'height',
          value: 200
        }],
        spacing: {
          margin: 'bottom',
          value: 50
        }
      },
      {
        name: 'findField',
        sizing: [{
          relation: 'minHeight',
          value: 20
        },
        {
          relation: 'maxHeight',
          value: 100
        }],
        spacing: {
          margin: 'bottom',
          value: 8
        }
      }
    },
    {
      views: [{
        name: 'findField',
        sizing: [{
          relation: 'minHeight',
          value: 20
        },
        {
          relation: 'maxHeight',
          value: 100
        }],
        spacing: {
          margin: 'bottom',
          value: 8
        }
      },
      {
        name: 'parentView',
        sizing: []
      }]
    }]
  }
 */

Keywords

vfl

FAQs

Package last updated on 23 Feb 2015

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