https://github.com/nothingrandom/varops
Object for parsing javascript operators from variables
https://github.com/nothingrandom/varops
Last synced: 3 months ago
JSON representation
Object for parsing javascript operators from variables
- Host: GitHub
- URL: https://github.com/nothingrandom/varops
- Owner: nothingrandom
- License: mit
- Created: 2020-01-22T17:00:01.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-09-22T17:07:06.000Z (almost 2 years ago)
- Last Synced: 2025-03-15T09:48:43.660Z (4 months ago)
- Language: JavaScript
- Size: 832 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# varops

> Object for parsing javascript operators from variables## Install
``` bash
$ yarn add varops
$ npm install varops
```## Usage (ES6 imports)
``` js
import varops from 'varops';const plus = '+';
const maths = varops[plus](1, 10);console.log(maths); // 11
```## Support for these operators;
`+` `-` `*` `/` `**` `%`## License
MIT © [Benjamin Grant](https://nothingrandom.com)