2.0.0 • Published 5 years ago

has-jsx-pragma v2.0.0

Weekly downloads
21
License
MIT
Repository
github
Last release
5 years ago

Deprecated

Deprecated as this package is no longer useful.


has-jsx-pragma Build Status

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