Được TopGit lập chỉ mục từ metadata GitHub: handsontable/formula-parser có 649 sao, viết chủ yếu bằng JavaScript. Javascript Library parsing Excel Formulas and more
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
:warning: This repository is deprecated. We've released new and improved HyperFormula engine.
Formula Parser
Library provides a Parser class that evaluates excel and mathematical formulas.
Install
A recommended way to install Formula Parser is through NPM using the following command:
$ npm install hot-formula-parser --save
Node.js:
var FormulaParser = require('hot-formula-parser').Parser;
var parser = new FormulaParser();
parser.parse('SUM(1, 6, 7)'); // It returns `Object {error: null, result: 14}`
Browser:
<script src="/node_modules/hot-formula-parser/dist/formula-parser.min.js"></script>
<script>
var parser = new formulaParser.Parser();
parser.parse('SUM(1, 6, 7)'); // It returns `Object {error: null, result: 14}`
</script>
Features
It supports:
Any numbers, negative and positive as float or integer;
Arithmetic operations like +, -, /, *, %, ^;
Logical operations like AND(), OR(), NOT(), XOR();
Comparison operations like =, >, >=, <, <=, <>;
All JavaScript Math constants like PI(), E(), LN10(), LN2(), LOG10E(), LOG2E(), SQRT1_2(), SQRT2();
String operations like & (concatenation eq. parser.parse('-(2&5)'); will return -25);
All excel formulas defined in formula.js;
Relative and absolute cell coordinates like A1, $A1, A$1, $A$1;
Build-in variables like TRUE, FALSE, NULL
Custom variables;
Custom functions/formulas;
Node and Browser environment.
API (methods)
var parser = new formulaParser.Parser();
.parse(expression)
Parses and evaluates provided expression. It always returns an object with result and error properties. result property
always keep evaluated value. If error occurs error property will be set as:
#ERROR! General error;
#DIV/0! Divide by zero error;
#NAME? Not recognised function name or variable name;
#N/A Indicates that a value is not available to a formula;
#NUM! Occurs when formula encounters an invalid number;
#VALUE! Occurs when one of formula arguments is of the wrong type.
Fired while calling function. If function was defined earlier using setFunction you can overwrite it's result by this hook.
You can also use this to override result of build-in formulas.
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/handsontable/formula-parser là nguồn chính thức.
handsontable/formula-parser có bao nhiêu sao?
handsontable/formula-parser có 649 sao GitHub — tải lại trang để xem số mới nhất, hoặc xem trực tiếp github.com/handsontable/formula-parser. TopGit phản chiếu số sao của GitHub nhưng không cam kết đến từng phút.
handsontable/formula-parser có phải mã nguồn mở không?
Có — handsontable/formula-parser phát hành theo license MIT, nghĩa là mã nguồn mở để đọc, fork và (tùy license) tái sử dụng. Mã: github.com/handsontable/formula-parser.
handsontable/formula-parser còn đang phát triển không?
Commit gần nhất trên handsontable/formula-parser là 5.1 năm trước (theo timestamp GitHub). Repo có 200 fork — một chỉ báo về mức độ quan tâm của cộng đồng.
handsontable/formula-parser là gì?
handsontable/formula-parser (handsontable/formula-parser) là dự án JavaScript trên GitHub. Theo mô tả gốc: Javascript Library parsing Excel Formulas and more
Đọc đầy đủ README ở tab phía trên.
Chưa chắc formula-parser có hợp với bạn?
Để ChatGPT, Claude hoặc Perplexity tìm hiểu giúp — bấm bên dưới và xem AI nói gì về formula-parser.