
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
easy-path-expressions
Advanced tools
Easy-path-expressions is a syntax parser that converts basic mathematical expressions into FHIRPath notation.
Easy-path-expressions is a syntax parser that converts basic mathematical expressions into FHIRPath notation.
npm install
To test that easy-path-expressions is working correctly:
npm test
import * as easyPathExpressions from 'easy-path-expressions';
easyPathExpressions.fhirConvert("(a+b)^2", ["a", "b"]); // returns ($a+$b).power(2)
easyPathExpressions.fhirConvert("CEILING(a*b)", ["a", "b"]); // returns ($a*$b).ceiling()
fhirConvert is the main function of easy-path-expressions, which validates and converts an inputted expression to fhirpath. fhirConvert will also return null if the expression fails validation.
fhirConvert takes in two inputs: the mathematical expression for conversion and an array of usable variables. The format is as follows:
fhirConvert([expression], [vars])
Basic syntax expressions utilize traditional operators and function statements. Expressions can be written using variable names, mathematical operators, and various functions. The syntax guide is bellow.
USABLE OPERATORS: +, -, *, /, ^, **, !=, !~, >=, <=, =, &&, ||, xor, and, or, implies
USABLE FUNCTIONS: CEILING(), FLOOR(), ABS(), LOG(), TRUNCATE(), EXP(), SQRT(), LN(), NOT(), LENGTH()
LOG()
USABLE VARIABLES: Any string of letters and numbers differing from the aforementioned functions.
EXAMPLE EXPRESSIONS (vars: [a, b, c]): 2+2 (a+b)^3 CEILING(LOG(2, 17)) TRUNCATE(ABS(-3.3)) + SQRT(LN(a+b+c))
INPUT: fhirConvert("2+2", ["a", "b", "c", "d"]) OUTPUT: "2+2"
INPUT: fhirConvert("(a+b)^3", ["a", "b", "c", "d"]) OUTPUT: "((%a+%b).power(3))"
INPUT: fhirConvert("CEILING(LOG(2, 17))", ["a", "b", "c", "d"]) OUTPUT: "((17.log(2)).ceiling())"
INPUT: fhirConvert("TRUNCATE(ABS(-3.3))+SQRT(LN(a+b+c))", ["a", "b", "c", "d"]) OUTPUT: "((-3.3).abs()).truncate()+((%a+%b+%c).ln()).sqrt()"
FAQs
Easy-path-expressions is a syntax parser that converts basic mathematical expressions into FHIRPath notation.
We found that easy-path-expressions demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?

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.

Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.

Research
A malicious package uses a QR code as steganography in an innovative technique.

Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.