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.

48 lines
2.0 KiB

4 years ago
  1. # es-abstract <sup>[![Version Badge][npm-version-svg]][package-url]</sup>
  2. [![Build Status][travis-svg]][travis-url]
  3. [![dependency status][deps-svg]][deps-url]
  4. [![dev dependency status][dev-deps-svg]][dev-deps-url]
  5. [![License][license-image]][license-url]
  6. [![Downloads][downloads-image]][downloads-url]
  7. [![npm badge][npm-badge-png]][package-url]
  8. [![browser support][testling-svg]][testling-url]
  9. ECMAScript spec abstract operations.
  10. When different versions of the spec conflict, the default export will be the latest version of the abstract operation.
  11. All abstract operations will also be available under an `es5`/`es2015`/`es2016`/`es2017`/`es2018`/`es2019` entry point, and exported property, if you require a specific version.
  12. ## Example
  13. ```js
  14. var ES = require('es-abstract');
  15. var assert = require('assert');
  16. assert(ES.isCallable(function () {}));
  17. assert(!ES.isCallable(/a/g));
  18. ```
  19. ## Tests
  20. Simply clone the repo, `npm install`, and run `npm test`
  21. ## Security
  22. Please email [@ljharb](https://github.com/ljharb) or see https://tidelift.com/security if you have a potential security vulnerability to report.
  23. [package-url]: https://npmjs.org/package/es-abstract
  24. [npm-version-svg]: http://versionbadg.es/ljharb/es-abstract.svg
  25. [travis-svg]: https://travis-ci.org/ljharb/es-abstract.svg
  26. [travis-url]: https://travis-ci.org/ljharb/es-abstract
  27. [deps-svg]: https://david-dm.org/ljharb/es-abstract.svg
  28. [deps-url]: https://david-dm.org/ljharb/es-abstract
  29. [dev-deps-svg]: https://david-dm.org/ljharb/es-abstract/dev-status.svg
  30. [dev-deps-url]: https://david-dm.org/ljharb/es-abstract#info=devDependencies
  31. [testling-svg]: https://ci.testling.com/ljharb/es-abstract.png
  32. [testling-url]: https://ci.testling.com/ljharb/es-abstract
  33. [npm-badge-png]: https://nodei.co/npm/es-abstract.png?downloads=true&stars=true
  34. [license-image]: https://img.shields.io/npm/l/es-abstract.svg
  35. [license-url]: LICENSE
  36. [downloads-image]: https://img.shields.io/npm/dm/es-abstract.svg
  37. [downloads-url]: https://npm-stat.com/charts.html?package=es-abstract