Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/foo123/sweet-macros
- Owner: foo123
- Created: 2014-07-25T03:41:47.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-07-26T20:19:32.000Z (over 10 years ago)
- Last Synced: 2023-03-16T03:55:43.623Z (over 1 year ago)
- Language: JavaScript
- Homepage: https://foo123.github.io/
- Size: 137 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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);
```