JSPM

  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q28450F
  • License MIT

calls the function f with the given arguments in protected mode

Package Exports

  • pcall.js
  • pcall.js/dist/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (pcall.js) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

PCALL.js

🚧 EARLY DEVELOPMENT -- DO NOT USE THIS 🚧

🚧 Lua pcall inspired - calls the function f with the given arguments in protected mode

This means that any error inside f is not propagated; instead, pcall catches the error and returns a status code.

Getting Started

# install
npm install pcall.js

Development

# test
bun test

# build
bun run build

License

MIT