es-abstract
's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.Name | Version | Size | License | Type | Vulnerabilities |
---|---|---|---|---|---|
array-buffer-byte-length | 1.0.1 | 5.32 kB | MIT | prod | |
arraybuffer.prototype.slice | 1.0.3 | 6.64 kB | MIT | prod | |
available-typed-arrays | 1.0.7 | 19.9 kB | MIT | prod | |
call-bind | 1.0.7 | 21.6 kB | MIT | prod | |
data-view-buffer | 1.0.1 | 5.23 kB | MIT | prod | |
data-view-byte-length | 1.0.1 | 9.76 kB | MIT | prod | |
data-view-byte-offset | 1.0.0 | 11.9 kB | MIT | prod | |
es-define-property | 1.0.0 | 11.52 kB | MIT | prod | |
es-errors | 1.3.0 | 5.21 kB | MIT | prod | |
es-object-atoms | 1.0.0 | 8.95 kB | MIT | prod | |
es-set-tostringtag | 2.0.3 | 13.53 kB | MIT | prod | |
es-to-primitive | 1.2.1 | 8.52 kB | MIT | prod | |
function.prototype.name | 1.1.6 | 8.67 kB | MIT | prod | |
get-intrinsic | 1.2.4 | 12.21 kB | MIT | prod | |
get-symbol-description | 1.0.2 | 13.93 kB | MIT | prod | |
globalthis | 1.0.3 | 7.92 kB | MIT | prod | |
gopd | 1.0.1 | 3.55 kB | MIT | prod | |
has-property-descriptors | 1.0.2 | 10.66 kB | MIT | prod | |
has-proto | 1.0.3 | 11.68 kB | MIT | prod | |
has-symbols | 1.0.3 | 6.9 kB | MIT | prod | |
hasown | 2.0.2 | 8.56 kB | MIT | prod | |
internal-slot | 1.0.7 | 6.82 kB | MIT | prod | |
is-array-buffer | 3.0.4 | 6.71 kB | MIT | prod | |
is-callable | 1.2.7 | 9.66 kB | MIT | prod | |
is-data-view | 1.0.1 | 5.91 kB | MIT | prod | |
is-negative-zero | 2.0.3 | 26.49 kB | MIT | prod | |
is-regex | 1.1.4 | 10.31 kB | MIT | prod | |
is-shared-array-buffer | 1.0.3 | 18.27 kB | MIT | prod | |
is-string | 1.0.7 | 6.92 kB | MIT | prod | |
is-typed-array | 1.1.13 | 7.79 kB | MIT | prod | |
is-weakref | 1.0.2 | 4.85 kB | MIT | prod | |
object-inspect | 1.13.1 | 25.91 kB | MIT | prod | |
object-keys | 1.1.1 | 7.5 kB | MIT | prod | |
object.assign | 4.1.5 | 18.68 kB | MIT | prod | |
regexp.prototype.flags | 1.5.2 | 39.41 kB | MIT | prod | |
safe-array-concat | 1.1.2 | 15.99 kB | MIT | prod | |
safe-regex-test | 1.0.3 | 4.3 kB | MIT | prod | |
string.prototype.trim | 1.2.9 | 32.74 kB | MIT | prod | |
string.prototype.trimend | 1.0.8 | 21.61 kB | MIT | prod | |
string.prototype.trimstart | 1.0.8 | 1 B | MIT | prod | |
typed-array-buffer | 1.0.2 | 12.78 kB | MIT | prod | |
typed-array-byte-length | 1.0.1 | 19.58 kB | MIT | prod | |
typed-array-byte-offset | 1.0.2 | 19.83 kB | MIT | prod | |
typed-array-length | 1.0.6 | 1 B | MIT | prod | |
unbox-primitive | 1.0.2 | 5.71 kB | MIT | prod | |
which-typed-array | 1.1.15 | 39.75 kB | MIT | prod |
es-abstract is a powerful npm package performing the critical function of providing ECMAScript spec abstract operations. These operations are pivotal in programming, enabling the smooth execution of scripts in the ECMAScript specification. Depending on the desired operation, users can access different versions ranging from ES5 to ES2021. Ensuring maximum performance and smaller bundle sizes, using deep imports is highly recommended.
To utilize es-abstract, you need to require it in your code. This package offers various ECMAScript specifications operations that can be called upon based on the desired function. Below is an illustrative example of how to use es-abstract:
var ES = require('es-abstract');
var assert = require('assert');
assert(ES.isCallable(function () {}));
assert(!ES.isCallable(/a/g));
In this example, the ES.isCallable
function is used to check whether a given function is callable. The operations accessible from es-abstract are varied and can add extensive functionality to your JavaScript code.
Despite es-abstract being specifically designed for JavaScript professionals, the developers haven't provided distinct documentation. However, pertinent details about installation and usage are detailed on its Github repository page. In case of potential security vulnerabilities or to report issues, users can reach out to the main developer '@ljharb' via email as indicated on the page. Always be certain to use reliable sources for your information to avoid misuse or misunderstanding of the software.