Files
rspade_system/node_modules/decomment/lib/index.js
root bd5809fdbd Reorganize RSpade directory structure for clarity
Improve Jqhtml_Integration.js documentation with hydration system explanation
Add jqhtml-laravel integration packages for traditional Laravel projects

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-24 09:41:48 +00:00

34 lines
734 B
JavaScript

'use strict';
const parser = require('./parser');
const utils = require('./utils');
function main(code, options) {
return parser(code, options, {
parse: true // need to parse;
});
}
main.text = function (text, options) {
return parser(text, options, {
parse: false, // do not parse;
html: false // treat as plain text;
});
};
main.html = function (html, options) {
return parser(html, options, {
parse: false, // do not parse;
html: true // treat as HTML;
});
};
main.getEOL = function (text) {
if (typeof text !== 'string') {
throw new TypeError('Invalid parameter \'text\' specified.');
}
return utils.getEOL(text);
};
module.exports = main;