js-to-json-logic
Advanced tools
Comparing version 0.0.4 to 0.0.5
{ | ||
"name": "js-to-json-logic", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "Generate JSON Logic objects using JavaScript syntax.", | ||
@@ -11,3 +11,9 @@ "main": "lib/index.js", | ||
}, | ||
"runkitExample": "const transformJS = require('js-to-json-logic');", | ||
"keywords": [ | ||
"json", | ||
"logic", | ||
"rules", | ||
"code", | ||
"jsonlogic", | ||
"json-logic", | ||
@@ -14,0 +20,0 @@ "js-to-json" |
@@ -1,6 +0,6 @@ | ||
# JS to JSON Logic | ||
# JS to JSONLogic | ||
[](https://npm.im/js-to-json-logic) [](http://opensource.org/licenses/MIT) [](https://github.com/krismuniz/js-to-json-logic/actions?query=workflow%3Abuild)  | ||
[](https://npm.im/js-to-json-logic) [](http://opensource.org/licenses/MIT) [](https://github.com/krismuniz/js-to-json-logic/actions?query=workflow%3Abuild)  [](https://npm.runkit.com/js-to-json-logic) | ||
Transform JavaScript expressions into [JSON Logic](http://jsonlogic.com) objects. For Node.js. | ||
Transform JavaScript expressions into [JSONLogic](http://jsonlogic.com) objects. For Node.js. | ||
@@ -50,3 +50,3 @@ > NOTICE: This module is still in beta! | ||
To parse input code, this module uses `@babel/parser` to parse JavaScript code into an [Abstract Syntax Tree (AST)](https://en.wikipedia.org/wiki/Abstract_syntax_tree). The tree is then transformed into a JSON Logic object. | ||
To parse input code, this module uses `@babel/parser` to parse JavaScript code into an [Abstract Syntax Tree (AST)](https://en.wikipedia.org/wiki/Abstract_syntax_tree). The tree is then transformed into a JSONLogic object. | ||
@@ -53,0 +53,0 @@ Said object is can then be used with the [`json-logic-js`](https://npmjs.com/package/json-logic-js) module to apply the interpreted rules to any type of data. [Learn More](http://jsonlogic.com) |
24518