0.2.1 • Published 8 years ago

osb-computing-service v0.2.1

Weekly downloads
3
License
Apache-2.0
Repository
github
Last release
8 years ago

osb-computing-service NPM version Build Status Dependency Status

Background

These utils are aimed to SNPedia supporting. For example, LogicFilter is for the genoset criteria's recursive logic.

Installation

$ npm install --save osb-computing-service

Test

$ npm test

or

$ mocha test/logic-filter.js

Usage

var osbComputingService = require('osb-computing-service');

var userdata = {
  'rs1234': true,
  'rs10': true,
  'rs11': true
};

var testCase = {expression: 'and(rs1234, rs9)', shouldBe: false};
var filter = new osbComputingService.LogicFilter();
filter.compile(testCase.expression);

var resolver = function (value) {
  return !!userdata[value];
};

var result = filter.execute(resolver) == testCase.shouldBe;

License

Apache-2.0 © gorebill @OSB Team

Reference

https://github.com/yeoman/generator-node

https://babeljs.io/docs/learn-es2015/

http://eslint.org/docs/rules

http://eslint.org/docs/user-guide/configuring#configuring-rules

0.2.1

8 years ago

0.2.0

8 years ago

0.1.0

8 years ago

1.0.0

8 years ago