es-shims/es-shim-api

Name: es-shim-api

Owner: ECMAScript Shims

Description: API contract, and rudimentary tests, for modules that conform to the *es-shim API*

Created: 2015-08-16 04:10:13.0

Updated: 2018-05-11 02:10:53.0

Pushed: 2017-12-30 21:43:05.0

Homepage: null

Size: 54

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

es-shim API Version Badge

Build Status dependency status dev dependency status License Downloads

npm badge

API Contract

For any given ?es-shim API?-compliant package foo, the following invariants must hold:

Recommended dependencies
How to denote compliance

Prominently in the package?s README, please include the following markdown:

 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](http://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
him-api object-assign
him-api array-includes --bound
Tests

Simply clone the repo, npm install, and run npm test


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.