项目原始demo,不改动
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.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

README.md 1.8 KiB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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` 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. [package-url]: https://npmjs.org/package/es-abstract
  22. [npm-version-svg]: http://versionbadg.es/ljharb/es-abstract.svg
  23. [travis-svg]: https://travis-ci.org/ljharb/es-abstract.svg
  24. [travis-url]: https://travis-ci.org/ljharb/es-abstract
  25. [deps-svg]: https://david-dm.org/ljharb/es-abstract.svg
  26. [deps-url]: https://david-dm.org/ljharb/es-abstract
  27. [dev-deps-svg]: https://david-dm.org/ljharb/es-abstract/dev-status.svg
  28. [dev-deps-url]: https://david-dm.org/ljharb/es-abstract#info=devDependencies
  29. [testling-svg]: https://ci.testling.com/ljharb/es-abstract.png
  30. [testling-url]: https://ci.testling.com/ljharb/es-abstract
  31. [npm-badge-png]: https://nodei.co/npm/es-abstract.png?downloads=true&stars=true
  32. [license-image]: https://img.shields.io/npm/l/es-abstract.svg
  33. [license-url]: LICENSE
  34. [downloads-image]: https://img.shields.io/npm/dm/es-abstract.svg
  35. [downloads-url]: https://npm-stat.com/charts.html?package=es-abstract