{"_id":"@stdlib/assert-napi-is-type","_rev":"4679209","name":"@stdlib/assert-napi-is-type","description":"Assert that a Node-API value is a specified Node-API data type.","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:42.000Z","created":"2023-02-02T04:37:08.113Z","0.2.3":"2026-02-07T06:05:35.119Z","0.2.2":"2024-07-27T02:52:17.053Z","0.2.1":"2024-02-22T20:49:31.411Z","0.2.0":"2024-02-14T05:09:34.228Z","0.1.1":"2023-10-04T00:55:48.766Z","0.1.0":"2023-09-23T00:50:41.103Z","0.0.1":"2023-02-02T04:37:08.113Z"},"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-is-type.git"},"versions":{"0.2.3":{"name":"@stdlib/assert-napi-is-type","version":"0.2.3","description":"Assert that a Node-API value is a specified Node-API data type.","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","gypfile":false,"directories":{"doc":"./docs","include":"./include","lib":"./lib","src":"./src","dist":"./dist"},"types":"./docs/types","scripts":{},"homepage":"https://stdlib.io","repository":{"type":"git","url":"git://github.com/stdlib-js/assert-napi-is-type.git"},"bugs":{"url":"https://github.com/stdlib-js/stdlib/issues"},"dependencies":{"@stdlib/assert-napi-equal-types":"^0.2.2","@stdlib/assert-napi-status-ok":"^0.2.2","@stdlib/utils-library-manifest":"^0.2.3"},"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"],"funding":{"type":"opencollective","url":"https://opencollective.com/stdlib"},"_id":"@stdlib/assert-napi-is-type@0.2.3","gitHead":"baaed472c168e6b26437cf48137cdf79c3fd544b","_nodeVersion":"20.20.0","_npmVersion":"10.8.2","dist":{"shasum":"cc9f7627149ab0ff8400f9dd1ee2fa3261a0c6cf","size":8846,"noattachment":false,"key":"/@stdlib/assert-napi-is-type/-/@stdlib/assert-napi-is-type-0.2.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/@stdlib/assert-napi-is-type/download/@stdlib/assert-napi-is-type-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-is-type_0.2.3_1770444334972_0.5159691306162064"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-02-07T06:05:35.119Z","publish_time":1770444335119,"_source_registry_name":"default","_cnpm_publish_time":1770444335119},"0.2.2":{"name":"@stdlib/assert-napi-is-type","version":"0.2.2","description":"Assert that a Node-API value is a specified Node-API data type.","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","gypfile":false,"directories":{"doc":"./docs","include":"./include","lib":"./lib","src":"./src","dist":"./dist"},"types":"./docs/types","scripts":{},"homepage":"https://stdlib.io","repository":{"type":"git","url":"git://github.com/stdlib-js/assert-napi-is-type.git"},"bugs":{"url":"https://github.com/stdlib-js/stdlib/issues"},"dependencies":{"@stdlib/assert-napi-equal-types":"^0.2.1","@stdlib/assert-napi-status-ok":"^0.2.1","@stdlib/utils-library-manifest":"^0.2.1"},"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"],"funding":{"type":"opencollective","url":"https://opencollective.com/stdlib"},"gitHead":"33e8edbac6d7d96a3152c652d61ff6aea90af713","_id":"@stdlib/assert-napi-is-type@0.2.2","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"shasum":"5897c00b946e2ef2e95920f6d69f66ff4486958c","size":8899,"noattachment":false,"key":"/@stdlib/assert-napi-is-type/-/@stdlib/assert-napi-is-type-0.2.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/@stdlib/assert-napi-is-type/download/@stdlib/assert-napi-is-type-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-is-type_0.2.2_1722048736879_0.8034325535268056"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-07-27T02:52:17.053Z","publish_time":1722048737053,"_source_registry_name":"default","_cnpm_publish_time":1722048737053},"0.2.1":{"name":"@stdlib/assert-napi-is-type","version":"0.2.1","description":"Assert that a Node-API value is a specified Node-API data type.","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","gypfile":false,"directories":{"doc":"./docs","include":"./include","lib":"./lib","src":"./src","dist":"./dist"},"types":"./docs/types","scripts":{},"homepage":"https://stdlib.io","repository":{"type":"git","url":"git://github.com/stdlib-js/assert-napi-is-type.git"},"bugs":{"url":"https://github.com/stdlib-js/stdlib/issues"},"dependencies":{"@stdlib/assert-napi-equal-types":"^0.2.1","@stdlib/assert-napi-status-ok":"^0.2.1","@stdlib/utils-library-manifest":"^0.2.1"},"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"],"funding":{"type":"opencollective","url":"https://opencollective.com/stdlib"},"gitHead":"39b81766b9d8a5e89ba4a26e5ea07f6413b46973","_id":"@stdlib/assert-napi-is-type@0.2.1","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"shasum":"46c6bf921dfdd657e099dcc83889cec37c86410a","size":9399,"noattachment":false,"key":"/@stdlib/assert-napi-is-type/-/@stdlib/assert-napi-is-type-0.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@stdlib/assert-napi-is-type/download/@stdlib/assert-napi-is-type-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-is-type_0.2.1_1708634971222_0.7775738404747239"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-02-22T20:49:31.411Z","publish_time":1708634971411,"_source_registry_name":"default","_cnpm_publish_time":1708634971411},"0.2.0":{"name":"@stdlib/assert-napi-is-type","version":"0.2.0","description":"Assert that a Node-API value is a specified Node-API data type.","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","gypfile":false,"directories":{"doc":"./docs","example":"./examples","include":"./include","lib":"./lib","src":"./src","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-is-type.git"},"bugs":{"url":"https://github.com/stdlib-js/stdlib/issues"},"dependencies":{"@stdlib/assert-napi-equal-types":"^0.2.0","@stdlib/assert-napi-status-ok":"^0.2.0","@stdlib/utils-library-manifest":"^0.2.0"},"devDependencies":{"@stdlib/assert-is-browser":"^0.1.1","@stdlib/utils-try-require":"^0.2.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"],"funding":{"type":"opencollective","url":"https://opencollective.com/stdlib"},"gitHead":"7137673f0798ef13d7c9fd7becf78e557b1d583b","_id":"@stdlib/assert-napi-is-type@0.2.0","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"shasum":"b4006c9fa056f9191914079e4417ec5f3f5429e3","size":9501,"noattachment":false,"key":"/@stdlib/assert-napi-is-type/-/@stdlib/assert-napi-is-type-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@stdlib/assert-napi-is-type/download/@stdlib/assert-napi-is-type-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-is-type_0.2.0_1707887374088_0.9035758957321123"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-02-14T05:09:34.228Z","publish_time":1707887374228,"_source_registry_name":"default","_cnpm_publish_time":1707887374228},"0.1.1":{"name":"@stdlib/assert-napi-is-type","version":"0.1.1","description":"Assert that a Node-API value is a specified Node-API data type.","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","gypfile":false,"directories":{"doc":"./docs","example":"./examples","include":"./include","lib":"./lib","src":"./src","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-is-type.git"},"bugs":{"url":"https://github.com/stdlib-js/stdlib/issues"},"dependencies":{"@stdlib/assert-napi-equal-types":"^0.1.0","@stdlib/assert-napi-status-ok":"^0.1.1","@stdlib/utils-library-manifest":"^0.1.1"},"devDependencies":{"@stdlib/assert-is-browser":"^0.1.0","@stdlib/utils-try-require":"^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"],"funding":{"type":"opencollective","url":"https://opencollective.com/stdlib"},"gitHead":"836b37cf688bfa381fcb3cb3a2dd327f0a94ad19","_id":"@stdlib/assert-napi-is-type@0.1.1","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"shasum":"2e98f9402c85d5dd1677a65e75941158126c11a4","size":9654,"noattachment":false,"key":"/@stdlib/assert-napi-is-type/-/@stdlib/assert-napi-is-type-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@stdlib/assert-napi-is-type/download/@stdlib/assert-napi-is-type-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-is-type_0.1.1_1696380948533_0.45790050862248544"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-10-04T00:55:48.766Z","publish_time":1696380948766,"_source_registry_name":"default","_cnpm_publish_time":1696380948766},"0.1.0":{"name":"@stdlib/assert-napi-is-type","version":"0.1.0","description":"Assert that a Node-API value is a specified Node-API data type.","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","gypfile":false,"directories":{"doc":"./docs","example":"./examples","include":"./include","lib":"./lib","src":"./src","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-is-type.git"},"bugs":{"url":"https://github.com/stdlib-js/stdlib/issues"},"dependencies":{"@stdlib/assert-napi-equal-types":"^0.1.0","@stdlib/assert-napi-status-ok":"^0.1.0","@stdlib/utils-library-manifest":"^0.1.0"},"devDependencies":{"@stdlib/assert-is-browser":"^0.1.0","@stdlib/utils-try-require":"^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"],"funding":{"type":"opencollective","url":"https://opencollective.com/stdlib"},"gitHead":"41f86d99cbb03d63f33b26b5a608ebc8703e045f","_id":"@stdlib/assert-napi-is-type@0.1.0","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"shasum":"d53f3b15834154e3cad72299ba9c72f4a8137ee2","size":9648,"noattachment":false,"key":"/@stdlib/assert-napi-is-type/-/@stdlib/assert-napi-is-type-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@stdlib/assert-napi-is-type/download/@stdlib/assert-napi-is-type-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-is-type_0.1.0_1695430240920_0.28159625062571236"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-09-23T00:50:41.103Z","publish_time":1695430241103,"_source_registry_name":"default","_cnpm_publish_time":1695430241103},"0.0.1":{"name":"@stdlib/assert-napi-is-type","version":"0.0.1","description":"Assert that a Node-API value is a specified Node-API data type.","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","gypfile":false,"directories":{"doc":"./docs","example":"./examples","include":"./include","lib":"./lib","src":"./src","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-is-type.git"},"bugs":{"url":"https://github.com/stdlib-js/stdlib/issues"},"dependencies":{"@stdlib/assert-napi-equal-types":"^0.0.x","@stdlib/assert-napi-status-ok":"^0.0.x","@stdlib/utils-library-manifest":"^0.0.x"},"devDependencies":{"@stdlib/assert-is-browser":"^0.0.x","@stdlib/utils-try-require":"^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"],"funding":{"type":"patreon","url":"https://www.patreon.com/athan"},"gitHead":"d377ab75d37de51fbdf99054edc6c59ee1d47e88","_id":"@stdlib/assert-napi-is-type@0.0.1","_nodeVersion":"16.19.0","_npmVersion":"8.19.3","dist":{"shasum":"b372c419bceff4f41542953069e067f0fa2a46e1","size":8428,"noattachment":false,"key":"/@stdlib/assert-napi-is-type/-/@stdlib/assert-napi-is-type-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@stdlib/assert-napi-is-type/download/@stdlib/assert-napi-is-type-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-is-type_0.0.1_1675312627933_0.014740419793803028"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-02-02T04:37:08.113Z","publish_time":1675312628113,"_cnpm_publish_time":1675312628113}},"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# Assert Type\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> Assert that a Node-API value is a specified Node-API data type.\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-is-type\n```\n\n</section>\n\n<section class=\"usage\">\n\n## Usage\n\n```javascript\nvar headerDir = require( '@stdlib/assert-napi-is-type' );\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-is-type' );\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/is_type.h\"\n```\n\n#### stdlib_assert_napi_value_is_type( env, value, type, \\*message, \\*err )\n\nAsserts that a Node-API value is a specified Node-API data type.\n\n```c\n#include \"stdlib/assert/napi/is_type.h\"\n#include <node_api.h>\n\nstatic napi_value addon( napi_env env, napi_callback_info info ) {\n    napi_value value;\n\n    // ...\n\n    napi_value err;\n    napi_status status = stdlib_assert_napi_value_is_type( env, value, napi_number, \"Must be a number.\", &err );\n    assert( status == napi_ok );\n    if ( err != NULL ) {\n        assert( napi_throw( env, err ) == napi_ok );\n        return NULL;\n    }\n\n    // ...\n}\n```\n\nThe function accepts the following arguments:\n\n-   **env**: `[in] napi_env` environment under which the function is invoked.\n-   **value**: `[in] napi_value` Node-API value.\n-   **type**: `[in] napi_valuetype` Node-API data type.\n-   **message**: `[in] char*` error message.\n-   **err**: `[out] napi_value*` pointer for storing a JavaScript error.\n\n```c\nnapi_status stdlib_assert_napi_value_is_type( const napi_env env, const napi_value value, const napi_valuetype type, const char *message, napi_value *err );\n```\n\nThe function returns a `napi_status` status code indicating success or failure (returns `napi_ok` if success).\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### Notes\n\n-   If provided a `value` whose type differs from `type`, the function sets `err` with a JavaScript error; otherwise, `err` is set to `NULL`.\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-is-type.svg\n[npm-url]: https://npmjs.org/package/@stdlib/assert-napi-is-type\n\n[test-image]: https://github.com/stdlib-js/assert-napi-is-type/actions/workflows/test.yml/badge.svg?branch=v0.2.3\n[test-url]: https://github.com/stdlib-js/assert-napi-is-type/actions/workflows/test.yml?query=branch:v0.2.3\n\n[coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/assert-napi-is-type/main.svg\n[coverage-url]: https://codecov.io/github/stdlib-js/assert-napi-is-type?branch=main\n\n<!--\n\n[dependencies-image]: https://img.shields.io/david/stdlib-js/assert-napi-is-type.svg\n[dependencies-url]: https://david-dm.org/stdlib-js/assert-napi-is-type/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-is-type/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"}