Gathering detailed insights and metrics for @ayonli/jsext
Gathering detailed insights and metrics for @ayonli/jsext
Gathering detailed insights and metrics for @ayonli/jsext
Gathering detailed insights and metrics for @ayonli/jsext
A JavaScript extension package for building strong and modern applications.
npm install @ayonli/jsext
Typescript
Module System
Min. Node Version
Node Version
NPM Version
TypeScript (93.04%)
JavaScript (6.96%)
Total Downloads
216,894
Last Day
894
Last Week
4,019
Last Month
17,587
Last Year
201,296
MIT License
28 Stars
1,271 Commits
7 Forks
2 Watchers
4 Branches
1 Contributors
Updated on May 09, 2025
Latest Version
1.7.3
Package Id
@ayonli/jsext@1.7.3
Unpacked Size
5.82 MB
Size
934.59 kB
File Count
829
NPM Version
10.5.0
Node Version
21.7.3
Published on
May 09, 2025
Cumulative downloads
Total Downloads
Last Day
141.6%
894
Compared to previous day
Last Week
17.3%
4,019
Compared to previous week
Last Month
-19.5%
17,587
Compared to previous month
Last Year
1,190.5%
201,296
Compared to previous year
4
27
A JavaScript extension package for building strong and modern applications.
This package is built on top of modern web standards and provides unified high-level APIs that can work across different runtime environments, whether it's Node.js, Deno, Bun, Cloudflare Workers, browsers, Windows, macOS or Linux.
The recommended way is to only import the ones that are needed:
1// Universal 2import _try from "@ayonli/jsext/try"; 3import func from "@ayonli/jsext/func"; 4// ... 5 6// Deno (URL) 7import _try from "https://lib.deno.dev/x/ayonli_jsext@latest/try.ts"; 8import func from "https://lib.deno.dev/x/ayonli_jsext@latest/func.ts"; 9// ... 10 11// Browsers (URL) 12import _try from "https://ayonli.github.io/jsext/esm/try.js"; 13import func from "https://ayonli.github.io/jsext/esm/func.js"; 14// ...
There is also a bundled version that can be loaded via a <script>
tag in the
browser.
1<script src="https://ayonli.github.io/jsext/bundle/jsext.js"> 2 // this will also include the sub-modules and augmentations 3</script>
For applications run in Cloudflare Workers and Fastly Compute, install the NPM version of this package instead of the JSR version.
In tsconfig.json
, the following compilerOptions
must be set as such:
moduleResolution
: Bundler
or NodeNext
skipLibCheck
: true
defer
keyword, inspired by
Golang.default
function to collect the result.Each of these modules includes specific functions and classes for their target categories:
Uint8Array
).Result
pattern into JavaScript, inspired by Rust.This package supports augmenting some functions to the corresponding built-in types/namespaces, but they should only be used for application development, don't use them when developing libraries.
NOTE: this feature is only available by the NPM package, they don't work by the JSR package.
For more details, please check this document.
No vulnerabilities found.
No security vulnerabilities found.