New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

lmd-expression

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lmd-expression

Computes simple mathematical expressions. Supported operators : + - * /

latest
npmnpm
Version
1.0.4
Version published
Maintainers
1
Created
Source

LMD-EXPRESSION

Gives features to evaluate simple mathematical expressions like "318-42".

This package can be used from JavaScript client side applications and NodeJS applications.

Installation

npm i lmd-expression

Using from NodeJS applications

const Computer = require("lmd-expression").default;

const computer = new Computer();
const result = computer.compute("318-42");

console.log(result);

Using from ES6 application

import Computer from "./expression-computer.js";

const computer = new Computer(); const result = computer.compute("318-42");

console.log(result);

FAQs

Package last updated on 10 Feb 2021

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