Permalink
Browse files

Export formatFormula function

  • Loading branch information...
1 parent 797024f commit e7c6dfac1873053cf1ca7be4d550a8c64f1a6961 @adamschmideg adamschmideg committed with Sep 17, 2012
Showing with 9 additions and 4 deletions.
  1. +4 −1 src/main.coffee
  2. +5 −3 src/main.js
View
5 src/main.coffee
@@ -2,6 +2,9 @@
require './core'
require './ExcelFormulaUtilities'
xl = excelFormulaUtilities
+
module.exports =
getTokens: (f) -> xl.getTokens(f).items
- toJavaScript: (f) -> xl.formula2JavaScript(f)
+ formatFormula: (f, opts) -> xl.formatFormula(f, opts)
+ toJavaScript: xl.formula2JavaScript
+ toCSharp: xl.formula2CSharp
View
8 src/main.js
@@ -12,9 +12,11 @@
getTokens: function(f) {
return xl.getTokens(f).items;
},
- toJavaScript: function(f) {
- return xl.formula2JavaScript(f);
- }
+ formatFormula: function(f, opts) {
+ return xl.formatFormula(f, opts);
+ },
+ toJavaScript: xl.formula2JavaScript,
+ toCSharp: xl.formula2CSharp
};
}).call(this);

0 comments on commit e7c6dfa

Please sign in to comment.