GithubHelp home page GithubHelp logo

jofomah / qsl.js-bower Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ehealthafrica/qsl.js-bower

0.0 1.0 0.0 128 KB

Bower package for qsl.js

Home Page: https://github.com/eHealthAfrica/qsl.js

License: Apache License 2.0

JavaScript 100.00%

qsl.js-bower's Introduction

qsl.js

Build Status

QSL parser

QSL is an indentation-significant, outliner-like markup language used to define questionnaires.

This project is a JavaScript implementation of a QSL parser.

Usage

qsl.js exposes parse the takes a raw QSL document and returns a array-object representation.

format takes a parsed document and a section name and returns a formatted representation of the given section.

# bands.qsl
Favourite bands survey
defaults
  required
section execution order
  bands
bands:
  First gig?
  How many gigs?
    integer
'use strict';

var qsl = require('qsl');
var parsed = qsl.parse(bandsQSL);
return qsl.format(parsed, 'bands');
// =>
// [
//   {
//     label: 'First gig?',
//     name: 'first-gig',
//     type: 'text',
//     required: true
//   },
//   {
//     label: 'How many gigs?',
//     name: 'how-many-gigs',
//     type: 'number',
//     required: true
//   }
// ];

Contributors

License

Released under Apache 2.0 license.

qsl.js-bower's People

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.