Skip to content
Object for parsing javascript operators from variables
JavaScript
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
.travis.yml
LICENSE
README.md
index.js
package.json
test.js
yarn.lock

README.md

varops

Travis (.com)

Object for parsing javascript operators from variables

Install

$ yarn add varops
$ npm install varops

Usage (ES6 imports)

import varops from 'varops';

const plus = '+';
const maths = varops[plus](1, 10);

console.log(maths); // 11

Support for these operators;

+ - * / ** %

License

MIT © Benjamin Hollway

You can’t perform that action at this time.