2.0.0 • Published 5 years ago
has-jsx-pragma v2.0.0
Deprecated
Deprecated as this package is no longer useful.
has-jsx-pragma
Check if a string contains a JSX pragma
Install
$ npm install --save has-jsx-pragma
Usage
var hasJsxPragma = require('has-jsx-pragma');
hasJsxPragma('/** @jsx React.DOM */\n\nvar unicorn = "rainbow";');
//=> true
License
MIT © Sindre Sorhus