Displaying 1 to 20 from 24 results

sparkler - Native pattern matching for JavaScript

  •    Javascript

Sparkler is a pattern matching engine for JavaScript built using sweet.js macros, so it looks and feels like native syntax. It has no runtime dependencies and compiles down to simple ifs and fors. Sparkler overloads the function keyword as a macro (don't worry, all your old functions will still work) but implements a slightly different syntax. There's no argument list after the name or function keyword. Instead the function body is just a set of ES6 style arrow-lambdas separated by commas.

babel-plugin-macros - 🎣 Enables zero-config, importable babel plugins

  •    Javascript

Check out this guest post on the Babel.js blog for a complete write up on the problem, motivation, and solution.Currently, each babel plugin in the babel ecosystem requires that you configure it individually. This is fine for things like language features, but can be frustrating overhead for libraries that allow for compile-time code transformation as an optimization.

miniMAL - A Delightfully Diminutive Lisp

  •    Javascript

A Delightfully Dimuntive Lisp.The miniMAL core interpreter is implemented in less than 1024 bytes of JavaScript (uglify/regpack). There is also an implementation of miniMAL in python (1.4K as a pyz file) and ClojureScript (1.8K after minification).

ki - lisp + mori, sweet.js

  •    Javascript

See ki-lang.org for more information or try ki straight in your browser. ki is a lisp with Clojure data structures and semantics that can be intermixed with Javascript code at any level.




earl-grey - Programming language compiling to JavaScript

  •    Javascript

Counting all words in a block of test. Note that count-words is a variable name, not a subtraction (it is equivalent to the name countWords, if that's the notation you prefer). The each operator accepts multiple clauses, which makes it especially easy to work on heterogenous arrays.

node-comment-macros - JavaScript comment macros useful for injecting logging, tracing, debugging, or stats related code

  •    Javascript

Node / JavaScript comment macros useful for injecting logging, tracing, debugging, or stats related code.I wouldn't recommend this at the library level, normally even at the application level I wouldn't recommend it, but some of our projects require a lot of logging and metrics, so this helps cut the clutter.

broccoli-sweetjs - Transpile Sweet.js macros

  •    Javascript

Issues with the output should be reported on the Sweet.js issue tracker.A list of macros you want to use.

react.hiccup - React 0% JSX, 100% hiccup

  •    Javascript

React.hiccup is a complete replacement for JSX written in sweet.js. React.hiccup uses a very clean, minimalistic notation - no HTML tags and no curly braces in HTML elements.


ast-util - Utilities for AST transformers.

  •    Javascript

Utilities for AST transformers. Returns a call to Array.prototype.slice with node as the context and begin and end as the arguments to slice.

cspjs - CSP-style tasks and channels for JS using a sweetjs macro.

  •    Javascript

The task macro, in conjunction with Channel objects lets you write CSP-ish code in Javascript that can interop with Node.js's callback mechanism. This came out of a need for a better way to deal with async activities than offered by Promises/A+ or even generators. Apart from tasks and channels, cspjs attempts at a saner and more expressive error handling mechanism than the traditional try-catch-finally model. See blog post and follow up describing the error management scheme in detail.

candyshop - Sweet.js macros

  •    Javascript

A collection of macros

ember-macaroni - Keep your app code DRY and copypasta free with computed property macaronis (macros)

  •    Javascript

Keep your app code DRY and copypasta free with computed property macaronis (macros) for Ember.js 1.13.x and greater. Computed property macros (CPM) are great for DRYing up your code, and Ember.js ships with a few handy computed macros. This addon adds a few more functional-style macros, and can be thought of as the "lodash equivalent" of Ember CPM libraries.

babel-plugin-debug-macros

  •    Javascript

This provides debug macros and feature flagging. The plugin takes 5 types options: envFlags, features, debugTools, externalizeHelpers and svelte. The importSpecifier is used as a hint to this plugin as to where macros are being imported and completely configurable by the host. Like Babel you can supply your own helpers using the externalizeHelpers options.

adt-simple - Algebraic data types for JavaScript using Sweet.js macros

  •    Javascript

adt-simple exports a data macro for creating simple data constructors. It also exports a union macro for grouping your constructors.

lambda-chop - Sweet.js macros for lambdas with currying, bound functions, and placeholders.

  •    Javascript

Sweet.js macros for lambdas with currying, bound functions, and placeholders. Placeholder partials are never curried or bound, and are always expressions.

sweetify - Browserify transform for using Sweet.js macros

  •    Javascript

Browserify transform for using Sweet.js macros. Sweeten transform kicks in only for files with .sjs extension.

lambda-jam - Add shorthand convenience functions to your JavaScript

  •    Javascript

lambda-jam is a sweet.js macro, λ, which is used to create shorthand, anonymous functions with special argument identifiers. Its functionality is inspired by clojure's shorthand function macro, #(). lambda-jam's real power is derived from its special argument identifiers and the fact that it returns the last expression for you. _1 references the first argument, _2 references the second argument and so on up until _9. Though, the hope is that you're not passing 9 arguments to a function.

sweet-contracts - A collection of sweet.js macros that provide contract support for JavaScript!

  •    Javascript

A collection of sweet.js macros that provide contract support for JavaScript! Enforce the runtime behavior of your code with beautiful syntax. Inspired and motivated by contracts.coffee. Powered by contracts.js. Made possible by sweet.js. You may notice that the syntax (and documentation...) of sweet-contracts bears a striking resemblance contracts.coffee. This is by design. The idea is to get roughly the same functionality and smooth syntax without transmogrifying existing code into CoffeeScript. Also, we wanted to present something cool you can do with sweet.js which you couldn't otherwise do in pure JS.

macros.operators - [Unmaintained]

  •    Javascript

Copyright (c) 2014 Quildreen Motta. Released under the MIT licence.

remark-macro - Adding support for block macros in remark

  •    Javascript

Dimer is an open source project and CMS to help you publish your documentation online. We believe every project/product is incomplete without documentation. We want to help you publish user facing documentation, without worrying about tools or code to write.