New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

js-to-json-logic

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

js-to-json-logic - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

8

package.json
{
"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"

8

README.md

@@ -1,6 +0,6 @@

# JS to JSON Logic
# JS to JSONLogic
[![npm](https://img.shields.io/npm/v/js-to-json-logic.svg?style=flat-square)](https://npm.im/js-to-json-logic) [![License:MIT](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](http://opensource.org/licenses/MIT) [![GitHub Workflow Status](https://img.shields.io/github/workflow/status/krismuniz/js-to-json-logic/build?logo=github&logoColor=white&style=flat-square)](https://github.com/krismuniz/js-to-json-logic/actions?query=workflow%3Abuild) ![Type Declarations](https://img.shields.io/npm/types/js-to-json-logic.svg?style=flat-square)
[![npm](https://img.shields.io/npm/v/js-to-json-logic.svg?style=flat-square)](https://npm.im/js-to-json-logic) [![License:MIT](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](http://opensource.org/licenses/MIT) [![GitHub Workflow Status](https://img.shields.io/github/workflow/status/krismuniz/js-to-json-logic/build?logo=github&logoColor=white&style=flat-square)](https://github.com/krismuniz/js-to-json-logic/actions?query=workflow%3Abuild) ![Type Declarations](https://img.shields.io/npm/types/js-to-json-logic.svg?style=flat-square) [![Try It on RunKit](https://img.shields.io/badge/Try_It_on-RunKit-f55fa6?labelColor=491757&style=flat-square)](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)

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