Pre-evaluate code at buildtime alternatives and similar libraries
Based on the "QA Tools" category.
Alternatively, view Pre-evaluate code at buildtime alternatives based on common mentions on social networks and blogs.
-
prettier
Prettier is an opinionated code formatter. -
ESLint
A fully pluggable tool for identifying and reporting on patterns in JavaScript. -
JSHint
JSHint is a tool that helps to detect errors and potential problems in your JavaScript code. -
JS-Beautifier
Npm cli and library to format JS code. -
JSLint
High-standards, strict & opinionated code quality tool, aiming to keep only good parts of the language. -
jsinspect
Detect copy-pasted and structurally similar code. -
jsfmt
For formatting, searching, and rewriting JavaScript. -
Typefont
An artificial intelligence written entirely in JavaScript that recognises the font of a text in a image using the Tesseract optical character recognition engine and some image processing libraries. -
dotenv-linter
Lightning-fast linter for .env files. Written in Rust -
buddy.js
Magic number detection for JavaScript. -
JavaScript Standard Style
Opinionated, no-configuration style guide, style checker, and formatter
Scout APM - Leading-edge performance monitoring starting at $39/month
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest. Visit our partner's website for more details.
Do you think we are missing an alternative of Pre-evaluate code at buildtime or a related project?
README
preval.macro
This is a babel-plugin-macros
macro for
babel-plugin-preval
.
Please see those projects for more information.
Installation
This module is distributed via npm which is bundled with node and
should be installed as one of your project's devDependencies
:
npm install --save-dev preval.macro
You'll also need to install and configure
babel-plugin-macros
if you haven't already.
Usage
Once you've
configured babel-plugin-macros
you can import/require preval.macro
. For example:
import preval from 'preval.macro'
const one = preval`module.exports = 1 + 2 - 1 - 1`
Note:
babel-plugin-preval
allows you to have a few more APIs
than you have with this macro, but this macro comes with all the benefits of
using babel-plugin-macros
(which you can read about in
the babel-plugin-macros
docs).
<!-- prettier-ignore-start -->
<!-- prettier-ignore-end -->