nodesdk/src/main/napiutil.cc
char * newCString(const Napi::Value& src) {
    if (src.IsString()) {
      Napi::String strSrc = src.As<Napi::String>();
      return newCString((std::string)strSrc);
    } else {
      return nullptr;
    }
}
/**
 * Create a C-string suitable for storing in a settings object from a napi string/null object.
 */
Create a C-string suitable for storing in a settings object from a napi string/null object.
Create a C - string suitable for storing in a settings object from a napi string / null object .
char * newCString(const Napi::Value& src) {
    if (src.IsString()) {
      Napi::String strSrc = src.As<Napi::String>();
      return newCString((std::string)strSrc);
    } else {
      return nullptr;
    }
}
char * newCString ( const Napi :: Value & src ) { if ( src . IsString ( ) ) { Napi :: String strSrc = src . As < Napi :: String > ( ) ; return newCString ( ( std :: string ) strSrc ) ; } else { return nullptr ; } }
Create a C-string suitable for storing in a settings object from a napi string/null object.
Create a C - string suitable for storing in a settings object from a napi string / null object .