1.0.1 • Published 3 years ago

is-potential-custom-element-name v1.0.1

Weekly downloads
6,435,158
License
MIT
Repository
github
Last release
3 years ago

is-potential-custom-element-name Build status

is-potential-custom-element-name checks whether a given string matches the PotentialCustomElementName production as defined in the HTML Standard.

Installation

To use is-potential-custom-element-name programmatically, install it as a dependency via npm:

$ npm install is-potential-custom-element-name

Then, require it:

const isPotentialCustomElementName = require('is-potential-custom-element-name');

Usage

isPotentialCustomElementName('foo-bar');
// → true
isPotentialCustomElementName('Foo-bar');
// → false
isPotentialCustomElementName('baz-©');
// → false
isPotentialCustomElementName('annotation-xml');
// → true

Author

twitter/mathias
Mathias Bynens

License

is-potential-custom-element-name is available under the MIT license.

jsdomreact-native-bluetooth2ticket-jsdomreact-native-template-rfbaseairscanairscan-examplereact-native-esc-pos-sahaab@borisovart/atol-kkt-moduledeneme323112@ntt_app/react-native-custom-notificationreact-native-covid-sdkbitget@olivervorasai/sliderreact-native-printer-brotherswilscannerstretch-rollup@mink-opn/build-tokenssvelte-slime@infinitebrahmanuniverse/nolb-is-pplginsklif-ui-kitsklif-api@everything-registry/sub-chunk-1934p149-table@pmadhur/jsdomsklif-uiis-valid-element-nameinstall-isgzup-react-image-file-resizerjsdom-rnjsdom-denojsdom-extra-jsjsdom-bypassjsdom-canvasjsdom-lambdajsdom-napi-rs-canvasjulien-easy-modallancetyersemproj3@simstudio/htmldiffp147-tablep148-tablenpm_qwertynpm-package-mentorchecknotion-database-exporternpm_one_12_34_1_npm_one_1_2_3npm_one_2_2native-apple-loginnative-google-loginnative-kakao-loginmpesa-cookiempesa-cookie-jarmynancemy-library-buttonpayutestingpickupbiz-npm-packagenka-gantt-task-reactoracle-zkappmavectralight-jsdomlib-errormap-values-resolvermd-vditormicroend-componentmy-calc-boxmy-greeter-packagemobtimer-api2neural_compressor_ext_lab_customizedneural_compressor_ext_lab_customized_2new-example-projectraact-native-arunramya151qaapio-reecord-mp3syncbackbasestailwind-vector-effecttldrawligninstyle-guide-mainsvelvet-customstringlbstp-cdksunki-lab7svelte-component-libsuperset-plugin-chart-hello-world2supercluster-googlemaps-adapter-clonesui4htmltypeorm-polymorphic-clonetypescript-requestreact-native-badge-controlreact-native-biometric-authenticatereact-native-bubble-chartreact-native-flyyreact-native-dsphoto-modulereact-native-arun-ramya-testreact-native-arunjeyam1987react-native-arunmeena1987react-native-arunramya151react-ang-notifications-honey-comb-setupreact-native-video-typoreact-native-ytximkitreact-native-test-module-hhhreact-native-transtracker-library
1.0.1

3 years ago

1.0.0

8 years ago