It would be nice to have a string "constructor" which takes a `string_view` Could be as simple as: ```cpp Napi::String::New(napi_env env, std::string_view value) { return Napi::String::New(env, value.data(), value.size()); } ```
Activity
legendecas commentedon Jan 30, 2026
@cacharle thanks for raising the issue! Would you like to file a PR for this?
Additionally, we could also review other places that could take an
std::string_view, where it takes a string pointer.