# cssauron-falafel

> falafel bindings for cssauron

Latest version **1.2.1** (published 2013-12-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install cssauron-falafel
pnpm add cssauron-falafel
yarn add cssauron-falafel
bun add cssauron-falafel
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.1 |
| Published | 2013-12-18 |
| First published | 2012-12-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 14 |
| Author | Chris Dickinson |
| Maintainers | chrisdickinson |
| Keywords | falafel, ast, modification, cssauron |

## Links

- npm: https://www.npmjs.com/package/cssauron-falafel
- Repository: https://github.com/chrisdickinson/cssauron-falafel
- Issues: https://github.com/chrisdickinson/cssauron-falafel/issues
- npm.io page: https://npm.io/package/cssauron-falafel

## Dependencies (1)

- [cssauron](https://npm.io/package/cssauron.md) 1.1.0

## Alternatives

- [update-check](https://npm.io/package/update-check.md) — 4.0M weekly downloads
- [react-native-onesignal](https://npm.io/package/react-native-onesignal.md) — 134.5K weekly downloads
- [react-redux-toastr](https://npm.io/package/react-redux-toastr.md) — 33.7K weekly downloads
- [@nocobase/plugin-notification-manager](https://npm.io/package/@nocobase/plugin-notification-manager.md) — 2.0K weekly downloads
- [react-simple-toasts](https://npm.io/package/react-simple-toasts.md) — 1.9K weekly downloads

## Recent versions

- 1.2.1 (latest) — 2013-12-18
- 1.2.0 — 2013-11-19
- 1.1.0 — 2013-11-13
- 1.0.0 — 2013-10-24
- 0.0.4 — 2013-10-24
- 0.0.3 — 2013-07-15
- 0.0.2 — 2013-07-09
- 0.0.1 — 2013-06-13
- 0.0.0 — 2012-12-13

## README

# cssauron-falafel

cssauron bindings for falafel / esprima JS ASTs.

It shortens the esprima names they're a bit verbose.

It also supports `.relation` classes -- for example:

```
if(x) {

}

if(x > y) {

}

if(100) {

}
```

If we wanted to select all of the if tests ("x", "x > y", "100"), we could use the
following selectors:

```
if > *:first-child                  // lil verbose!
.test                               // test the relation from the parent, not the node type
if > .test                          // more specific -- only ".test" relations from "if" statements.
```

# node types

    LabeledStatement	    ->	label
    BlockStatement	        ->	block
    Program	                ->	root
    ExpressionStatement	    ->	expr
    ConditionalExpression	->	ternary
    IfStatement	        	->	if
    BreakStatement	    	->	break
    ContinueStatement		->	continue
    WithStatement	    	->	with
    SwitchStatement	    	->	switch
    ReturnStatement	    	->	return
    ThrowStatement	    	->	throw
    TryStatement	    	->	try
    WhileStatement	    	->	while
    DoWhileStatement		->	do-while
    ForStatement	    	->	for
    ForInStatement	    	->	for-in
    FunctionDeclaration		->	function
    VariableDeclaration		->	variable-decl
    VariableDeclarator		->	variable
    LogicalExpression		->	binary
    BinaryExpression		->	binary
    AssignmentExpression	->	assign
    ArrayExpression	    	->	array
    ObjectExpression		->	object
    ObjectKeyExpression		->	key
    FunctionExpression		->	function
    SequenceExpression		->	sequence
    UpdateExpression		->	update
    UnaryExpression	    	->	unary
    CallExpression	    	->	call
    NewExpression	    	->	new
    MemberExpression		->	lookup
    SwitchClause	    	->	case
    CatchClause	        	->	catch
    DebuggerStatement		->	debugger
    ThisExpression	    	->	this
    Identifier	        	->	id
    Literal	            	->	literal

# license

MIT

---
_Source: https://npm.io/package/cssauron-falafel · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
