javascript - API/library/tool to validate JS code? -
i have stuff done in php, , need validate (just syntax validation) if user writing valid js in 1 of form fields. options have apart of jslint?
to check syntax can utilize javascript parsers e.g. esprima parser (http://esprima.org/demo/validate.html) or acorn.js (https://github.com/marijnh/acorn). there pure php implementation - jparser - http://apps.timwhitlock.info/jparser/index.html
javascript php
No comments:
Post a Comment