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

@aiot-toolkit/card-expression

Package Overview
Dependencies
Maintainers
0
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aiot-toolkit/card-expression

快应用卡片表达式解析库

  • 1.0.2
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-66.67%
Maintainers
0
Weekly downloads
 
Created
Source

快应用卡片表达式解析

用于将 JS表达式 转换为 快应用卡片表达式

快应用卡片表达式是一种类似 lisp的语法树表达式

示例

表达式转换后
a+123['+', ['$', 'a'], 123]
!a['!', ['$', 'a']]
a[1].x.y['.',['.', ['.', ['$', 'a'], 1], ['$''x']], ['$', 'y']]
fun(a, b, 124)[['()', ['$', 'fun'], ['$', 'a'], ['$', 'b'], 124]

快速上手

js 代码转为 Card 代码

import translateJsToCardCode from '@aiot-toolkit/card-expression';

const code = 'a+b';
const result = translateJsToCardCode(code);
console.log(result); // '["+", ["$", "a"], ["$", "b"]]'

FAQs

Package last updated on 24 Sep 2024

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

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