Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

README.md 1.3KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. # is-potential-custom-element-name [![Build status](https://travis-ci.org/mathiasbynens/is-potential-custom-element-name.svg?branch=master)](https://travis-ci.org/mathiasbynens/is-potential-custom-element-name)
  2. _is-potential-custom-element-name_ checks whether a given string matches [the `PotentialCustomElementName` production](https://html.spec.whatwg.org/multipage/scripting.html#prod-potentialcustomelementname) as defined in the HTML Standard.
  3. ## Installation
  4. To use _is-potential-custom-element-name_ programmatically, install it as a dependency via [npm](https://www.npmjs.com/):
  5. ```bash
  6. $ npm install is-potential-custom-element-name
  7. ```
  8. Then, `require` it:
  9. ```js
  10. const isPotentialCustomElementName = require('is-potential-custom-element-name');
  11. ```
  12. ## Usage
  13. ```js
  14. isPotentialCustomElementName('foo-bar');
  15. // → true
  16. isPotentialCustomElementName('Foo-bar');
  17. // → false
  18. isPotentialCustomElementName('baz-©');
  19. // → false
  20. isPotentialCustomElementName('annotation-xml');
  21. // → true
  22. ```
  23. ## Author
  24. | [![twitter/mathias](https://gravatar.com/avatar/24e08a9ea84deb17ae121074d0f17125?s=70)](https://twitter.com/mathias "Follow @mathias on Twitter") |
  25. |---|
  26. | [Mathias Bynens](https://mathiasbynens.be/) |
  27. ## License
  28. _is-potential-custom-element-name_ is available under the [MIT](https://mths.be/mit) license.