Check whether content is wxml
npm install --save is-wxml
const isWxml = require('is-wxml');
isWxml('<view>I am WXML</view>');
// => true
isWxml('<image />');
// => true
isWxml('<p>HTML</p>');
// => false
isWxml('>+++++++>++++++++++>+++>+<<<<-');
// => false
git clone git@github.com:kimochg/is-wxml.git
cd is-wxml
npm install
npm run test
MIT © Cheng Liu
highly inspired by is-html