New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

babel-plugin-rambdax

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-rambdax

rambdax modularized builds without the hassle

  • 2.2.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
10
increased by66.67%
Maintainers
1
Weekly downloads
 
Created
Source

babel-plugin-rambdax Build Status

This plugin is a transform to remove unused rambdax dependencies, without forcing the user to cherry pick methods manually. This lets you use rambdax naturally (aka as documented) without worrying about bundling parts you're not using.

See also babel-plugin-lodash.

Example

Converts

import R, {map} from 'rambdax';

map(R.add(1), [1, 2, 3]);

Roughly to

import add from 'rambdax/src/add';
import map from 'rambdax/src/map';

map(add(1), [1, 2, 3]);
Limitations
  • You must be using ES6 imports (both specifiers and default work) to load rambdax.
FAQ

I receive TypeError: The plugin "rambdax" didn’t export a Plugin instance
or, can I use this plugin with Babel v5?

Babel v5 is no longer supported. Use v0.1.2 for support.

Usage
{
  "plugins": ["rambdax"]
}

or

{
  "plugins": "rambdax"
}
Via CLI
$ babel --plugins rambdax script.js
Via Node API
require("babel-core").transform("code", {
  plugins: ["rambdax"]
});

Keywords

FAQs

Package last updated on 29 Jun 2020

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc