Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

jsstana

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jsstana

s-expression match patterns for Mozilla Parser AST

  • 0.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1.9K
decreased by-52.45%
Maintainers
1
Weekly downloads
 
Created
Source

jsstana Build Status

s-expression match patterns for Mozilla Parser AST

Synopsis

var jsstana = require("jsstana");
var esprima = require("esprima");

var contents = // ...
var syntax = esprima.parse(syntax);

var alertCallMatcher = jsstana.pattern("(call alert ?argument)");
jsstana.traverse(syntax, function (node) {
	var m = alertCallMatcher(node);
	if (m) {
		console.log("alert called with argument", m.argument);
	}
});

Documentation

(Coming soon)

Contributing

In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using Grunt.

Release History

(Nothing yet)

License

Copyright (c) 2013 Oleg Grenrus
Licensed under the BSD3 license.

FAQs

Package last updated on 23 Oct 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