معرفی شرکت ها


@es-shims/api-2.3.1


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

Loosely test a package's compliance with the es-shim API
ویژگی مقدار
سیستم عامل -
نام فایل @es-shims/api-2.3.1
نام @es-shims/api
نسخه کتابخانه 2.3.1
نگهدارنده ['ljharb']
ایمیل نگهدارنده ['ljharb@gmail.com']
نویسنده Jordan Harband
ایمیل نویسنده -
آدرس صفحه اصلی git://github.com/es-shims/api.git
آدرس اینترنتی https://github.com/es-shims/api#readme
مجوز MIT
# es-shim API <sup>[![Version Badge][npm-version-svg]][package-url]</sup> [![github actions][actions-image]][actions-url] [![coverage][codecov-image]][codecov-url] [![dependency status][deps-svg]][deps-url] [![dev dependency status][dev-deps-svg]][dev-deps-url] [![License][license-image]][license-url] [![Downloads][downloads-image]][downloads-url] [![npm badge][npm-badge-png]][package-url] ## API Contract For any given “es-shim API”-compliant package `foo`, the following invariants must hold: - This package will run in an environment supporting the oldest JS version in which the spec’s semantics are achievable - ES3, ES5, and/or ES6. The package should indicate its minimum level of required environment support in its README. - The package must attempt to support `node`/`io.js`, all versions of all ES3-compliant browsers or later, Web Workers, and `node-webkit`. Other environments are a plus, but not expected. - `require('foo')` is a spec-compliant JS or native function. However, if the function’s behavior depends on a receiver (a “this” value), then the first argument to this function will be used as that receiver. The package should indicate if this is the case in its README. - `require('foo').implementation` or `require('foo/implementation')` is a spec-compliant JS function, that will depend on a receiver (a “this” value) as the spec requires. - `require('foo').getPolyfill` or `require('foo/polyfill')` is a function that when invoked, will return the most compliant and performant function that it can - if a native version is available, and does not violate the spec, then the native function will be returned - otherwise, either the `implementation`, or a custom, wrapped version of the native function, will be returned. This is also the result that will be used as the default export. - `require('foo').shim` or `require('foo/shim')` is a function that when invoked, will call `getPolyfill`, and if the polyfill doesn’t match the built-in value, will install it into the global environment. - `require('foo/auto')` will automatically invoke the `shim` method. - The only place the package may modify the environment is within its `shim` method. - Naturally, `npm test` must run the package’s tests. - In every way possible, the package must attempt to make itself robust against the environment being modified *after* it is `require`d. - For example, `require('foo'); delete Function.prototype.call;` must not alter the behavior of `foo`. - The most useful technique for this is shown in this example: `var callBound = require('call-bind/callBound'); var slice = callBound('Array.prototype.slice'); slice([1], 1);` — this technique works in ES3 environments, and will ensure that modifying `Array.prototype` or `Function.prototype` will not interfere with the package. ## Multi-shim Packages If your package contains multiple shims, you can pass `--multi` to apply these invariants: - The package's main export must be an array of directory names, with no additional properties. - The entry points and respective invariants listed above apply to the subdirectories listed in the main export - The root must contain `shim` and `auto` entrypoints that match the same invariants described above. The `shim` entry point must invoke the `shim` entry point in each of the subdirectories listed in the main export - The root must NOT contain an `implementation` entry point. ## Recommended dependencies - Please use the [es-abstract][es-abstract-url] module to ensure spec-compliant behavior via the spec’s internal abstract operations. - Please use the [define-properties][define-properties-url] module to trivially define non-enumerable properties, where supported. - Please use the [call-bind][call-bind-url] module to cache references to all builtin methods, to be robust against later modification of the environment. ## How to denote compliance Prominently in the package’s README, please include the following markdown: ```md This package implements the [es-shim API](https://github.com/es-shims/api) interface. It works in an ES3-supported environment and complies with the [spec](https://www.ecma-international.org/ecma-262/6.0/). ``` Please modify “ES3” as needed to the level of support, and please update the spec link so it points directly to the most relevant section of the spec it complies with. ## Binary Very simple and shallow tests that a package follows the `es-shim API`. Pass `--bound` to indicate that the function the package is implementing depends on having a receiver (a “this” value). ## Example ```sh es-shim-api object-assign es-shim-api array-includes --bound ``` ## Tests Simply clone the repo, `npm install`, and run `npm test` [package-url]: https://npmjs.org/package/number.parseint [npm-version-svg]: https://versionbadg.es/es-shims/Number.parseInt.svg [deps-svg]: https://david-dm.org/es-shims/Number.parseInt.svg [deps-url]: https://david-dm.org/es-shims/Number.parseInt [dev-deps-svg]: https://david-dm.org/es-shims/Number.parseInt/dev-status.svg [dev-deps-url]: https://david-dm.org/es-shims/Number.parseInt#info=devDependencies [npm-badge-png]: https://nodei.co/npm/number.parseint.png?downloads=true&stars=true [license-image]: https://img.shields.io/npm/l/number.parseint.svg [license-url]: LICENSE [downloads-image]: https://img.shields.io/npm/dm/number.parseint.svg [downloads-url]: https://npm-stat.com/charts.html?package=number.parseint [codecov-image]: https://codecov.io/gh/es-shims/Number.parseInt/branch/main/graphs/badge.svg [codecov-url]: https://app.codecov.io/gh/es-shims/Number.parseInt/ [actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/es-shims/Number.parseInt [actions-url]: https://github.com/es-shims/Number.parseInt/actions [es-abstract-url]: https://npmjs.com/package/es-abstract [define-properties-url]: https://npmjs.com/package/define-properties [call-bind-url]: https://npmjs.com/package/call-bind


نیازمندی

مقدار نام
^1.3.1 array.prototype.flatmap
^5.6.3 tape


زبان مورد نیاز

مقدار نام
19.6.1 Npm


نحوه نصب


نصب پکیج tgz @es-shims/api-2.3.1:

    npm install @es-shims/api-2.3.1.tgz