Package Exports
- is-html-tag-opening
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (is-html-tag-opening) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
is-html-tag-opening
Does an HTML tag start at given position?
Install
npm i is-html-tag-openingQuick Take
import { strict as assert } from "assert";
import { isOpening } from "dist/is-html-tag-opening.esm";
const text = `<span>a < b<span>`;
// opening span tag's opening
assert.equal(isOpening(text, 0), true);
// unencoded bracket between a and b
assert.equal(isOpening(text, 8), false);
// closing span tag's opening
assert.equal(isOpening(text, 11), true);Documentation
Please visit codsen.com for a full description of the API and examples.
Licence
MIT License
Copyright (c) 2010-2021 Roy Revelt and other contributors
![]()