New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

cssauron-falafel

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cssauron-falafel

falafel bindings for cssauron

  • 1.2.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

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

Keywords

FAQs

Package last updated on 18 Dec 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc