All Projects → jamiebuilds → babel-plugin-private-underscores

jamiebuilds / babel-plugin-private-underscores

Licence: MIT License
Make _classMembers 'private' using symbols

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to babel-plugin-private-underscores

BitBruteForce-Wallet
No description or website provided.
Stars: ✭ 142 (+264.1%)
Mutual labels:  public, private
Babel Plugin React Remove Properties
Babel plugin for removing React properties. 💨
Stars: ✭ 327 (+738.46%)
Mutual labels:  babel, properties
mutable
State containers with dirty checking and more
Stars: ✭ 32 (-17.95%)
Mutual labels:  class, properties
php-helpers
An extensive set of PHP helper functions and classes.
Stars: ✭ 27 (-30.77%)
Mutual labels:  class, methods
python-autoclass
A python 3 library providing functions and decorators to automatically generate class code, such as constructor body or properties getters/setters along with optional support of validation contracts on the generated setters. Its objective is to reduce the amount of copy/paste code in your classes - and hence to help reducing human mistakes :).
Stars: ✭ 30 (-23.08%)
Mutual labels:  class, properties
ficus
Scala-friendly companion to Typesafe config
Stars: ✭ 321 (+723.08%)
Mutual labels:  public
medly-components
🧩 Medly components provides numerous themable react components, each with multiple varitaions of sizes, colors, position etc.
Stars: ✭ 66 (+69.23%)
Mutual labels:  babel
stan
🔨 Collection of front-end engineering tools
Stars: ✭ 19 (-51.28%)
Mutual labels:  babel
react-multi-context
Manage multiple React 16 contexts with a single component.
Stars: ✭ 19 (-51.28%)
Mutual labels:  babel
netflix landing-page
The Netflix.com landing page built via React 16 and Styled-Components. Build deployed via Surge.sh for preview.
Stars: ✭ 39 (+0%)
Mutual labels:  babel
k6-template-es6
Template repository for bundling test projects into single test scripts runnable by k6
Stars: ✭ 39 (+0%)
Mutual labels:  babel
babel-note
Some examples of babel
Stars: ✭ 12 (-69.23%)
Mutual labels:  babel
babel-plugin-proposal-pattern-matching
the minimal grammar, high performance JavaScript pattern matching implementation
Stars: ✭ 34 (-12.82%)
Mutual labels:  babel
freeRouter
freeRouter - networking swiss army knife
Stars: ✭ 26 (-33.33%)
Mutual labels:  babel
FlashPaper
One-time encrypted password/secret sharing
Stars: ✭ 85 (+117.95%)
Mutual labels:  private
puppeteer-electron-quickstart
Quickstart project to run puppeteer library from an Electron application. Using ES-6 and babel.
Stars: ✭ 52 (+33.33%)
Mutual labels:  babel
reducer-class
Boilerplate free class-based reducer creator. Built with TypeScript. Works with Redux and NGRX. Has integration with immer.
Stars: ✭ 25 (-35.9%)
Mutual labels:  class
node-lambda-babel-template
A minimal template for an ES2015+ Node.js app running on AWS Lambda (w/ babel and webpack).
Stars: ✭ 40 (+2.56%)
Mutual labels:  babel
react-quiz-app
A Simple React Quiz App 💎
Stars: ✭ 37 (-5.13%)
Mutual labels:  babel
Overview
Overview and map of the organization, for the UCSD course COGS108: Data Science in Practice.
Stars: ✭ 111 (+184.62%)
Mutual labels:  class

babel-plugin-private-underscores

Make _classMembers 'private' using symbols

Install

yarn add --dev babel-plugin-private-underscores

Example

Input

class Foo {
  constructor() {
    this._method();
  }

  _method() {
    // ...
  }
}

Output

let _method = Symbol('_method');
class Foo {
  constructor() {
    this[_method]();
  }

  [_method]() {
    // ...
  }
}

Usage

{
  "plugins": [
    "private-underscores"
  ]
}

Note: This is not real private, it just makes it a lot harder for people to accidentally use methods with underscores.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].