{"_id":"@stdlib/assert-napi-status-ok","_rev":"4679202","name":"@stdlib/assert-napi-status-ok","description":"C utilities for asserting that a Node-API call returns an \"ok\" status.","dist-tags":{"latest":"0.2.3"},"maintainers":[{"name":"kgryte","email":"kgryte@gmail.com"},{"name":"planeshifter","email":"pgb@andrew.cmu.edu"},{"name":"rreusser","email":"rsreusser@gmail.com"},{"name":"stdlib-bot","email":""}],"time":{"modified":"2026-04-11T00:29:40.000Z","created":"2023-02-02T04:37:34.328Z","0.2.3":"2026-02-07T06:05:05.989Z","0.2.2":"2024-07-27T02:51:34.839Z","0.2.1":"2024-02-22T20:49:02.088Z","0.2.0":"2024-02-14T05:09:08.112Z","0.1.1":"2023-10-04T00:55:06.802Z","0.1.0":"2023-09-23T00:49:15.615Z","0.0.1":"2023-02-02T04:37:34.328Z"},"users":{},"author":{"name":"The Stdlib Authors","url":"https://github.com/stdlib-js/stdlib/graphs/contributors"},"repository":{"type":"git","url":"git://github.com/stdlib-js/assert-napi-status-ok.git"},"versions":{"0.2.3":{"name":"@stdlib/assert-napi-status-ok","version":"0.2.3","description":"C utilities for asserting that a Node-API call returns an \"ok\" status.","license":"Apache-2.0","author":{"name":"The Stdlib Authors","url":"https://github.com/stdlib-js/stdlib/graphs/contributors"},"contributors":[{"name":"The Stdlib Authors","url":"https://github.com/stdlib-js/stdlib/graphs/contributors"}],"main":"./lib","browser":"./lib/browser.js","directories":{"doc":"./docs","include":"./include","lib":"./lib","dist":"./dist"},"types":"./docs/types","scripts":{},"homepage":"https://stdlib.io","repository":{"type":"git","url":"git://github.com/stdlib-js/assert-napi-status-ok.git"},"bugs":{"url":"https://github.com/stdlib-js/stdlib/issues"},"dependencies":{},"devDependencies":{},"engines":{"node":">=0.10.0","npm":">2.7.0"},"os":["aix","darwin","freebsd","linux","macos","openbsd","sunos","win32","windows"],"keywords":["stdlib","napi","native","addon","assert","assertion","validate","validation","macros"],"funding":{"type":"opencollective","url":"https://opencollective.com/stdlib"},"_id":"@stdlib/assert-napi-status-ok@0.2.3","gitHead":"baaed472c168e6b26437cf48137cdf79c3fd544b","_nodeVersion":"20.20.0","_npmVersion":"10.8.2","dist":{"shasum":"b85cc8bb442ad98484754f08cb8195e4525e0275","size":8058,"noattachment":false,"key":"/@stdlib/assert-napi-status-ok/-/@stdlib/assert-napi-status-ok-0.2.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/@stdlib/assert-napi-status-ok/download/@stdlib/assert-napi-status-ok-0.2.3.tgz"},"_npmUser":{"name":"stdlib-bot","email":"kgryte+stdlibbot@gmail.com"},"maintainers":[{"name":"kgryte","email":"kgryte@gmail.com"},{"name":"planeshifter","email":"pgb@andrew.cmu.edu"},{"name":"rreusser","email":"rsreusser@gmail.com"},{"name":"stdlib-bot","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/assert-napi-status-ok_0.2.3_1770444305837_0.35231393256516363"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-02-07T06:05:05.989Z","publish_time":1770444305989,"_source_registry_name":"default","_cnpm_publish_time":1770444305989},"0.2.2":{"name":"@stdlib/assert-napi-status-ok","version":"0.2.2","description":"C utilities for asserting that a Node-API call returns an \"ok\" status.","license":"Apache-2.0","author":{"name":"The Stdlib Authors","url":"https://github.com/stdlib-js/stdlib/graphs/contributors"},"contributors":[{"name":"The Stdlib Authors","url":"https://github.com/stdlib-js/stdlib/graphs/contributors"}],"main":"./lib","browser":"./lib/browser.js","directories":{"doc":"./docs","include":"./include","lib":"./lib","dist":"./dist"},"types":"./docs/types","scripts":{},"homepage":"https://stdlib.io","repository":{"type":"git","url":"git://github.com/stdlib-js/assert-napi-status-ok.git"},"bugs":{"url":"https://github.com/stdlib-js/stdlib/issues"},"dependencies":{},"devDependencies":{},"engines":{"node":">=0.10.0","npm":">2.7.0"},"os":["aix","darwin","freebsd","linux","macos","openbsd","sunos","win32","windows"],"keywords":["stdlib","napi","native","addon","assert","assertion","validate","validation","macros"],"funding":{"type":"opencollective","url":"https://opencollective.com/stdlib"},"gitHead":"33e8edbac6d7d96a3152c652d61ff6aea90af713","_id":"@stdlib/assert-napi-status-ok@0.2.2","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"shasum":"c28e2188a35da0cb6b24a2701f535671506bc70b","size":8101,"noattachment":false,"key":"/@stdlib/assert-napi-status-ok/-/@stdlib/assert-napi-status-ok-0.2.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/@stdlib/assert-napi-status-ok/download/@stdlib/assert-napi-status-ok-0.2.2.tgz"},"_npmUser":{"name":"stdlib-bot","email":"kgryte+stdlibbot@gmail.com"},"maintainers":[{"name":"kgryte","email":"kgryte@gmail.com"},{"name":"planeshifter","email":"pgb@andrew.cmu.edu"},{"name":"rreusser","email":"rsreusser@gmail.com"},{"name":"stdlib-bot","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/assert-napi-status-ok_0.2.2_1722048694695_0.10178656214413095"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-07-27T02:51:34.839Z","publish_time":1722048694839,"_source_registry_name":"default","_cnpm_publish_time":1722048694839},"0.2.1":{"name":"@stdlib/assert-napi-status-ok","version":"0.2.1","description":"C utilities for asserting that a Node-API call returns an \"ok\" status.","license":"Apache-2.0","author":{"name":"The Stdlib Authors","url":"https://github.com/stdlib-js/stdlib/graphs/contributors"},"contributors":[{"name":"The Stdlib Authors","url":"https://github.com/stdlib-js/stdlib/graphs/contributors"}],"main":"./lib","browser":"./lib/browser.js","directories":{"doc":"./docs","include":"./include","lib":"./lib","dist":"./dist"},"types":"./docs/types","scripts":{},"homepage":"https://stdlib.io","repository":{"type":"git","url":"git://github.com/stdlib-js/assert-napi-status-ok.git"},"bugs":{"url":"https://github.com/stdlib-js/stdlib/issues"},"dependencies":{},"devDependencies":{},"engines":{"node":">=0.10.0","npm":">2.7.0"},"os":["aix","darwin","freebsd","linux","macos","openbsd","sunos","win32","windows"],"keywords":["stdlib","napi","native","addon","assert","assertion","validate","validation","macros"],"funding":{"type":"opencollective","url":"https://opencollective.com/stdlib"},"gitHead":"39b81766b9d8a5e89ba4a26e5ea07f6413b46973","_id":"@stdlib/assert-napi-status-ok@0.2.1","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"shasum":"cf68a295991f6d1e7fcdcbcac5819239d679a490","size":8102,"noattachment":false,"key":"/@stdlib/assert-napi-status-ok/-/@stdlib/assert-napi-status-ok-0.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@stdlib/assert-napi-status-ok/download/@stdlib/assert-napi-status-ok-0.2.1.tgz"},"_npmUser":{"name":"stdlib-bot","email":"kgryte+stdlibbot@gmail.com"},"maintainers":[{"name":"kgryte","email":"kgryte@gmail.com"},{"name":"planeshifter","email":"pgb@andrew.cmu.edu"},{"name":"rreusser","email":"rsreusser@gmail.com"},{"name":"stdlib-bot","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/assert-napi-status-ok_0.2.1_1708634941742_0.7895109402109226"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-02-22T20:49:02.088Z","publish_time":1708634942088,"_source_registry_name":"default","_cnpm_publish_time":1708634942088},"0.2.0":{"name":"@stdlib/assert-napi-status-ok","version":"0.2.0","description":"C utilities for asserting that a Node-API call returns an \"ok\" status.","license":"Apache-2.0","author":{"name":"The Stdlib Authors","url":"https://github.com/stdlib-js/stdlib/graphs/contributors"},"contributors":[{"name":"The Stdlib Authors","url":"https://github.com/stdlib-js/stdlib/graphs/contributors"}],"main":"./lib","browser":"./lib/browser.js","directories":{"doc":"./docs","example":"./examples","include":"./include","lib":"./lib","test":"./test"},"types":"./docs/types","scripts":{"test":"make test","test-cov":"make test-cov","examples":"make examples"},"homepage":"https://stdlib.io","repository":{"type":"git","url":"git://github.com/stdlib-js/assert-napi-status-ok.git"},"bugs":{"url":"https://github.com/stdlib-js/stdlib/issues"},"dependencies":{"@stdlib/utils-library-manifest":"^0.2.0"},"devDependencies":{"@stdlib/assert-is-browser":"^0.1.1","tape":"git+https://github.com/kgryte/tape.git#fix/globby","istanbul":"^0.4.1","tap-min":"git+https://github.com/Planeshifter/tap-min.git"},"engines":{"node":">=0.10.0","npm":">2.7.0"},"os":["aix","darwin","freebsd","linux","macos","openbsd","sunos","win32","windows"],"keywords":["stdlib","napi","native","addon","assert","assertion","validate","validation","macros"],"funding":{"type":"opencollective","url":"https://opencollective.com/stdlib"},"gitHead":"7137673f0798ef13d7c9fd7becf78e557b1d583b","_id":"@stdlib/assert-napi-status-ok@0.2.0","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"shasum":"dfd50d8a584c3cbc88cfac55689d2fc1b0f56103","size":8217,"noattachment":false,"key":"/@stdlib/assert-napi-status-ok/-/@stdlib/assert-napi-status-ok-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@stdlib/assert-napi-status-ok/download/@stdlib/assert-napi-status-ok-0.2.0.tgz"},"_npmUser":{"name":"stdlib-bot","email":"kgryte+stdlibbot@gmail.com"},"maintainers":[{"name":"kgryte","email":"kgryte@gmail.com"},{"name":"planeshifter","email":"pgb@andrew.cmu.edu"},{"name":"rreusser","email":"rsreusser@gmail.com"},{"name":"stdlib-bot","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/assert-napi-status-ok_0.2.0_1707887347970_0.5013097487624072"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-02-14T05:09:08.112Z","publish_time":1707887348112,"_source_registry_name":"default","_cnpm_publish_time":1707887348112},"0.1.1":{"name":"@stdlib/assert-napi-status-ok","version":"0.1.1","description":"C utilities for asserting that a Node-API call returns an \"ok\" status.","license":"Apache-2.0","author":{"name":"The Stdlib Authors","url":"https://github.com/stdlib-js/stdlib/graphs/contributors"},"contributors":[{"name":"The Stdlib Authors","url":"https://github.com/stdlib-js/stdlib/graphs/contributors"}],"main":"./lib","browser":"./lib/browser.js","directories":{"doc":"./docs","example":"./examples","include":"./include","lib":"./lib","test":"./test"},"types":"./docs/types","scripts":{"test":"make test","test-cov":"make test-cov","examples":"make examples"},"homepage":"https://stdlib.io","repository":{"type":"git","url":"git://github.com/stdlib-js/assert-napi-status-ok.git"},"bugs":{"url":"https://github.com/stdlib-js/stdlib/issues"},"dependencies":{"@stdlib/utils-library-manifest":"^0.1.1"},"devDependencies":{"@stdlib/assert-is-browser":"^0.1.0","tape":"git+https://github.com/kgryte/tape.git#fix/globby","istanbul":"^0.4.1","tap-min":"git+https://github.com/Planeshifter/tap-min.git"},"engines":{"node":">=0.10.0","npm":">2.7.0"},"os":["aix","darwin","freebsd","linux","macos","openbsd","sunos","win32","windows"],"keywords":["stdlib","napi","native","addon","assert","assertion","validate","validation","macros"],"funding":{"type":"opencollective","url":"https://opencollective.com/stdlib"},"gitHead":"836b37cf688bfa381fcb3cb3a2dd327f0a94ad19","_id":"@stdlib/assert-napi-status-ok@0.1.1","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"shasum":"e8dde5e84dde65b3ecbddf8fe1c65530acca5780","size":8355,"noattachment":false,"key":"/@stdlib/assert-napi-status-ok/-/@stdlib/assert-napi-status-ok-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@stdlib/assert-napi-status-ok/download/@stdlib/assert-napi-status-ok-0.1.1.tgz"},"_npmUser":{"name":"stdlib-bot","email":"kgryte+stdlibbot@gmail.com"},"maintainers":[{"name":"kgryte","email":"kgryte@gmail.com"},{"name":"planeshifter","email":"pgb@andrew.cmu.edu"},{"name":"rreusser","email":"rsreusser@gmail.com"},{"name":"stdlib-bot","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/assert-napi-status-ok_0.1.1_1696380906629_0.2064005843627914"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-10-04T00:55:06.802Z","publish_time":1696380906802,"_source_registry_name":"default","_cnpm_publish_time":1696380906802},"0.1.0":{"name":"@stdlib/assert-napi-status-ok","version":"0.1.0","description":"C utilities for asserting that a Node-API call returns an \"ok\" status.","license":"Apache-2.0","author":{"name":"The Stdlib Authors","url":"https://github.com/stdlib-js/stdlib/graphs/contributors"},"contributors":[{"name":"The Stdlib Authors","url":"https://github.com/stdlib-js/stdlib/graphs/contributors"}],"main":"./lib","browser":"./lib/browser.js","directories":{"doc":"./docs","example":"./examples","include":"./include","lib":"./lib","test":"./test"},"types":"./docs/types","scripts":{"test":"make test","test-cov":"make test-cov","examples":"make examples"},"homepage":"https://stdlib.io","repository":{"type":"git","url":"git://github.com/stdlib-js/assert-napi-status-ok.git"},"bugs":{"url":"https://github.com/stdlib-js/stdlib/issues"},"dependencies":{"@stdlib/utils-library-manifest":"^0.1.0"},"devDependencies":{"@stdlib/assert-is-browser":"^0.1.0","tape":"git+https://github.com/kgryte/tape.git#fix/globby","istanbul":"^0.4.1","tap-min":"git+https://github.com/Planeshifter/tap-min.git"},"engines":{"node":">=0.10.0","npm":">2.7.0"},"os":["aix","darwin","freebsd","linux","macos","openbsd","sunos","win32","windows"],"keywords":["stdlib","napi","native","addon","assert","assertion","validate","validation","macros"],"funding":{"type":"opencollective","url":"https://opencollective.com/stdlib"},"gitHead":"41f86d99cbb03d63f33b26b5a608ebc8703e045f","_id":"@stdlib/assert-napi-status-ok@0.1.0","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"shasum":"60a98437597972b0315bcd8895cf5ad905460b32","size":8355,"noattachment":false,"key":"/@stdlib/assert-napi-status-ok/-/@stdlib/assert-napi-status-ok-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@stdlib/assert-napi-status-ok/download/@stdlib/assert-napi-status-ok-0.1.0.tgz"},"_npmUser":{"name":"stdlib-bot","email":"kgryte+stdlibbot@gmail.com"},"maintainers":[{"name":"kgryte","email":"kgryte@gmail.com"},{"name":"planeshifter","email":"pgb@andrew.cmu.edu"},{"name":"rreusser","email":"rsreusser@gmail.com"},{"name":"stdlib-bot","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/assert-napi-status-ok_0.1.0_1695430155278_0.5208176821332331"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-09-23T00:49:15.615Z","publish_time":1695430155615,"_source_registry_name":"default","_cnpm_publish_time":1695430155615},"0.0.1":{"name":"@stdlib/assert-napi-status-ok","version":"0.0.1","description":"C utilities for asserting that a Node-API call returns an \"ok\" status.","license":"Apache-2.0","author":{"name":"The Stdlib Authors","url":"https://github.com/stdlib-js/stdlib/graphs/contributors"},"contributors":[{"name":"The Stdlib Authors","url":"https://github.com/stdlib-js/stdlib/graphs/contributors"}],"main":"./lib","browser":"./lib/browser.js","directories":{"doc":"./docs","example":"./examples","include":"./include","lib":"./lib","test":"./test"},"types":"./docs/types","scripts":{"test":"make test","test-cov":"make test-cov","examples":"make examples"},"homepage":"https://stdlib.io","repository":{"type":"git","url":"git://github.com/stdlib-js/assert-napi-status-ok.git"},"bugs":{"url":"https://github.com/stdlib-js/stdlib/issues"},"dependencies":{"@stdlib/utils-library-manifest":"^0.0.x"},"devDependencies":{"@stdlib/assert-is-browser":"^0.0.x","tape":"git+https://github.com/kgryte/tape.git#fix/globby","istanbul":"^0.4.1","tap-min":"git+https://github.com/Planeshifter/tap-min.git"},"engines":{"node":">=0.10.0","npm":">2.7.0"},"os":["aix","darwin","freebsd","linux","macos","openbsd","sunos","win32","windows"],"keywords":["stdlib","napi","native","addon","assert","assertion","validate","validation","macros"],"funding":{"type":"patreon","url":"https://www.patreon.com/athan"},"gitHead":"3ace39c13966704834036070582a6f78a3dc950b","_id":"@stdlib/assert-napi-status-ok@0.0.1","_nodeVersion":"16.19.0","_npmVersion":"8.19.3","dist":{"shasum":"fc29c56aaf98fe2171f90b6ea9956f0939e2fda9","size":7177,"noattachment":false,"key":"/@stdlib/assert-napi-status-ok/-/@stdlib/assert-napi-status-ok-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@stdlib/assert-napi-status-ok/download/@stdlib/assert-napi-status-ok-0.0.1.tgz"},"_npmUser":{"name":"kgryte","email":"kgryte@gmail.com"},"maintainers":[{"name":"kgryte","email":"kgryte@gmail.com"},{"name":"planeshifter","email":"pgb@andrew.cmu.edu"},{"name":"rreusser","email":"rsreusser@gmail.com"},{"name":"stdlib-bot","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/assert-napi-status-ok_0.0.1_1675312654180_0.6205866342729691"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-02-02T04:37:34.328Z","publish_time":1675312654328,"_cnpm_publish_time":1675312654328}},"readme":"<!--\n\n@license Apache-2.0\n\nCopyright (c) 2022 The Stdlib Authors.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n   http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n\n-->\n\n\n<details>\n  <summary>\n    About stdlib...\n  </summary>\n  <p>We believe in a future in which the web is a preferred environment for numerical computation. To help realize this future, we've built stdlib. stdlib is a standard library, with an emphasis on numerical and scientific computation, written in JavaScript (and C) for execution in browsers and in Node.js.</p>\n  <p>The library is fully decomposable, being architected in such a way that you can swap out and mix and match APIs and functionality to cater to your exact preferences and use cases.</p>\n  <p>When you use stdlib, you can be absolutely certain that you are using the most thorough, rigorous, well-written, studied, documented, tested, measured, and high-quality code out there.</p>\n  <p>To join us in bringing numerical computing to the web, get started by checking us out on <a href=\"https://github.com/stdlib-js/stdlib\">GitHub</a>, and please consider <a href=\"https://opencollective.com/stdlib\">financially supporting stdlib</a>. We greatly appreciate your continued support!</p>\n</details>\n\n# ok status\n\n[![NPM version][npm-image]][npm-url] [![Build Status][test-image]][test-url] [![Coverage Status][coverage-image]][coverage-url] <!-- [![dependencies][dependencies-image]][dependencies-url] -->\n\n> C utilities for asserting that a Node-API call returns an \"ok\" status.\n\n<!-- Section to include introductory text. Make sure to keep an empty line after the intro `section` element and another before the `/section` close. -->\n\n<section class=\"intro\">\n\n</section>\n\n<!-- /.intro -->\n\n<!-- Package usage documentation. -->\n\n<section class=\"installation\">\n\n## Installation\n\n```bash\nnpm install @stdlib/assert-napi-status-ok\n```\n\n</section>\n\n<section class=\"usage\">\n\n## Usage\n\n```javascript\nvar headerDir = require( '@stdlib/assert-napi-status-ok' );\n```\n\n#### headerDir\n\nAbsolute file path for the directory containing header files for C APIs.\n\n```javascript\nvar dir = headerDir;\n// returns <string>\n```\n\n</section>\n\n<!-- /.usage -->\n\n<!-- Package usage notes. Make sure to keep an empty line after the `section` element and another before the `/section` close. -->\n\n<section class=\"notes\">\n\n</section>\n\n<!-- /.notes -->\n\n<!-- Package usage examples. -->\n\n<section class=\"examples\">\n\n## Examples\n\n```javascript\nvar headerDir = require( '@stdlib/assert-napi-status-ok' );\n\nconsole.log( headerDir );\n// => <string>\n```\n\n</section>\n\n<!-- /.examples -->\n\n<!-- C interface documentation. -->\n\n* * *\n\n<section class=\"c\">\n\n## C APIs\n\n<!-- Section to include introductory text. Make sure to keep an empty line after the intro `section` element and another before the `/section` close. -->\n\n<section class=\"intro\">\n\n</section>\n\n<!-- /.intro -->\n\n<!-- C usage documentation. -->\n\n<section class=\"usage\">\n\n### Usage\n\n```c\n#include \"stdlib/assert/napi/status_ok.h\"\n```\n\n#### STDLIB_ASSERT_NAPI_STATUS_OK_RET_VOID( env, call, message )\n\nMacro for asserting that a Node-API API call returns an \"ok\" status.\n\n```c\n#include <node_api.h>\n\nstatic void foo( const napi_env env, const napi_value value, double *out ) {\n    // ...\n\n    STDLIB_ASSERT_NAPI_STATUS_OK_RET_VOID( env, napi_get_value_double( env, value, out ), \"\" )\n\n    // ...\n\n    return;\n}\n```\n\nThe macro expects the following arguments:\n\n-   **env**: environment under which the function is invoked.\n-   **call**: expression which returns a Node-API status.\n-   **message**: error message.\n\nIf a status is not \"ok\", an exception is raised and `void` returned.\n\n#### STDLIB_ASSERT_NAPI_STATUS_OK_RET_NULL( env, call, message )\n\nMacro for asserting that a Node-API API call returns an \"ok\" status.\n\n```c\n#include <node_api.h>\n\nstatic napi_value foo( const napi_env env, const napi_value value, double *out ) {\n    // ...\n\n    STDLIB_ASSERT_NAPI_STATUS_OK_RET_NULL( env, napi_get_value_double( env, value, out ), \"\" )\n\n    // ...\n\n    return NULL;\n}\n```\n\nThe macro expects the following arguments:\n\n-   **env**: environment under which the function is invoked.\n-   **call**: expression which returns a Node-API status.\n-   **message**: error message.\n\nIf a status is not \"ok\", an exception is raised and `NULL` returned.\n\n#### STDLIB_ASSERT_NAPI_STATUS_OK_RET_VALUE( env, call, message, value )\n\nMacro for asserting that a Node-API API call returns an \"ok\" status.\n\n```c\n#include <node_api.h>\n\nstatic double foo( const napi_env env, const napi_value value ) {\n    // ...\n\n    double *out;\n    STDLIB_ASSERT_NAPI_STATUS_OK_RET_VALUE( env, napi_get_value_double( env, value, out ), \"\", 0.0/0.0 )\n\n    // ...\n\n    return *out;\n}\n```\n\nThe macro expects the following arguments:\n\n-   **env**: environment under which the function is invoked.\n-   **call**: expression which returns a Node-API status.\n-   **message**: error message.\n-   **value**: return value.\n\nIf a status is not \"ok\", an exception is raised and the value specified by `value` returned.\n\n</section>\n\n<!-- /.usage -->\n\n<!-- C API usage notes. Make sure to keep an empty line after the `section` element and another before the `/section` close. -->\n\n<section class=\"notes\">\n\n</section>\n\n<!-- /.notes -->\n\n<!-- C API usage examples. -->\n\n<section class=\"examples\">\n\n</section>\n\n<!-- /.examples -->\n\n</section>\n\n<!-- /.c -->\n\n<!-- Section to include cited references. If references are included, add a horizontal rule *before* the section. Make sure to keep an empty line after the `section` element and another before the `/section` close. -->\n\n<section class=\"references\">\n\n</section>\n\n<!-- /.references -->\n\n<!-- Section for related `stdlib` packages. Do not manually edit this section, as it is automatically populated. -->\n\n<section class=\"related\">\n\n</section>\n\n<!-- /.related -->\n\n<!-- Section for all links. Make sure to keep an empty line after the `section` element and another before the `/section` close. -->\n\n\n<section class=\"main-repo\" >\n\n* * *\n\n## Notice\n\nThis package is part of [stdlib][stdlib], a standard library for JavaScript and Node.js, with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more.\n\nFor more information on the project, filing bug reports and feature requests, and guidance on how to develop [stdlib][stdlib], see the main project [repository][stdlib].\n\n#### Community\n\n[![Chat][chat-image]][chat-url]\n\n---\n\n## License\n\nSee [LICENSE][stdlib-license].\n\n\n## Copyright\n\nCopyright &copy; 2016-2026. The Stdlib [Authors][stdlib-authors].\n\n</section>\n\n<!-- /.stdlib -->\n\n<!-- Section for all links. Make sure to keep an empty line after the `section` element and another before the `/section` close. -->\n\n<section class=\"links\">\n\n[npm-image]: http://img.shields.io/npm/v/@stdlib/assert-napi-status-ok.svg\n[npm-url]: https://npmjs.org/package/@stdlib/assert-napi-status-ok\n\n[test-image]: https://github.com/stdlib-js/assert-napi-status-ok/actions/workflows/test.yml/badge.svg?branch=v0.2.3\n[test-url]: https://github.com/stdlib-js/assert-napi-status-ok/actions/workflows/test.yml?query=branch:v0.2.3\n\n[coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/assert-napi-status-ok/main.svg\n[coverage-url]: https://codecov.io/github/stdlib-js/assert-napi-status-ok?branch=main\n\n<!--\n\n[dependencies-image]: https://img.shields.io/david/stdlib-js/assert-napi-status-ok.svg\n[dependencies-url]: https://david-dm.org/stdlib-js/assert-napi-status-ok/main\n\n-->\n\n[chat-image]: https://img.shields.io/badge/zulip-join_chat-brightgreen.svg\n[chat-url]: https://stdlib.zulipchat.com\n\n[stdlib]: https://github.com/stdlib-js/stdlib\n\n[stdlib-authors]: https://github.com/stdlib-js/stdlib/graphs/contributors\n\n[stdlib-license]: https://raw.githubusercontent.com/stdlib-js/assert-napi-status-ok/main/LICENSE\n\n</section>\n\n<!-- /.links -->\n","_attachments":{},"homepage":"https://stdlib.io","bugs":{"url":"https://github.com/stdlib-js/stdlib/issues"},"license":"Apache-2.0"}