Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
preval.macro
Advanced tools
This is a babel-plugin-macros
macro for
babel-plugin-preval
.
Please see those projects for more information.
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.
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).
FAQs
Pre-evaluate code at build-time with babel-macros
The npm package preval.macro receives a total of 15,632 weekly downloads. As such, preval.macro popularity was classified as popular.
We found that preval.macro demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.