hubot-calculator
Hubot script for basic calculator functionality
Last updated 6 years ago by canadianveggie .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install hubot-calculator 
SYNC missed versions from official npm registry.

hubot-calculator

Replacement for hubot's math.coffee script that uses http://mathjs.org/ instead of decommissioned Google calculator

Installation

Update the files to include the hubot-calculator module:

package.json

...
"dependencies": {
  ...
  "hubot-calculator": ">= 0.3.0"
  ...
},
...

external-scripts.json

[...,"hubot-calculator"]

Run npm install to install hubot-calculator and dependencies.

Commands

hubot calculate <expression> - Calculate the given math expression.
hubot convert <expression> in <units> - Convert expression to given units.

Examples

hubot calculate sin(45 deg) ^ 2
@hubot: 0.5
hubot convert 34 L in gal
@hubot: 8.9818492676623 gal

Current Tags

  • 0.4.0                                ...           latest (6 years ago)

5 Versions

  • 0.4.0                                ...           6 years ago
  • 0.3.1                                ...           6 years ago
  • 0.3.0                                ...           6 years ago
  • 0.2.0                                ...           6 years ago
  • 0.1.0                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 1
Last Month 6
Dependencies (2)
Dev Dependencies (4)

Copyright 2014 - 2016 © taobao.org |