Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/foo123/sweet-macros

various sweet.js macros for javascript
https://github.com/foo123/sweet-macros

Last synced: about 1 month ago
JSON representation

various sweet.js macros for javascript

Awesome Lists containing this project

README

        

sweet-macros
============

various sweet.js macros for javascript (in progress)

1. **Class** macro, see [classy.js](https://github.com/foo123/classy.js)

2. **ES6 function** with default arguments and rest arguments (in progress)

**Example:**

```javascript

function afunc(arg1=123, arg2=null, ...rest)
{
// func body etc..
}

```

3. C-preprocessor-like **define** macro (in progress)

**Example:**

```javascript

#define ABC 'abc'

console.log(ABC);

```