Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

babel-plugin-anonymize

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-anonymize

babel-plugin-anonymize renames variables, functions, classes, and more by replacing them with random words, while keeping code functional. Great for sanitizing private code in order to share it publicly on the internet!

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

babel-plugin-anonymize

babel-plugin-anonymize renames variables, functions, classes, and more by replacing them with random words, while keeping code functional. Great for sanitizing private code in order to share it publicly on the internet!

Try it out live at https://anonymizejs.com.

Install

Using npm:

npm install babel-plugin-anonymize

or using yarn:

yarn add babel-plugin-anonymize

Usage

{
  "plugins": ["babel-plugin-anonymize"]
}

Options

wordType

The type of words to replace things with.

Possible options: "animals", "dinosaurs", or "fruits". If left empty, will use any words.

{
  "plugins": [
    [
      "babel-plugin-anonymize",
      {
        "wordType": "animals"
      }
    ]
  ]
}

seed

A seed for the random generator (babel-plugin-anonymize uses seedrandom under the hood and this option will be passed to it). When providing a seed, babel-plugin-anonymize will always replace results with the same sequence of words.

Can be a string, number, etc.

{
  "plugins": [
    [
      "babel-plugin-anonymize",
      {
        "seed": "hello."
      }
    ]
  ]
}

Keywords

FAQs

Package last updated on 04 Feb 2021

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