babel-plugin-transform-evaluate
Evaluate constant expressions
Last updated 10 years ago by boopathi .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install babel-plugin-transform-evaluate 
SYNC missed versions from official npm registry.

babel-plugin-transform-evaluate

Attempt evaluating constant expressions

Install

npm install babel-plugin-transform-evaluate

In

const x = Math.floor(6.5) + 1 * 2 / 3 * 6 % 5 + myValue;
const y = true && false || "default value";

Out

const x = 10 + myValue;
const y = "default value";

Current Tags

  • 0.1.8                                ...           latest (10 years ago)

11 Versions

  • 0.1.8                                ...           10 years ago
  • 0.1.7                                ...           10 years ago
  • 0.1.6                                ...           10 years ago
  • 0.1.5                                ...           10 years ago
  • 0.1.4                                ...           10 years ago
  • 0.1.3                                ...           10 years ago
  • 0.1.2                                ...           10 years ago
  • 0.1.1                                ...           10 years ago
  • 0.1.0                                ...           10 years ago
  • 0.0.10                                ...           10 years ago
  • 0.0.0                                ...           10 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 11
Dependencies (0)
None
Dev Dependencies (0)
None
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |