Skip to content

nothingrandom/varops

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

About

Object for parsing javascript operators from variables

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published