index.js
/**
   * Check that the version of the library is at minimum
   * the requested one and return the version string;
   * return NULL if the condition is not satisfied.
   *
   * See ASN1_VERSION for a suitable version string.
   * @param {string} [version] required version number
   * @returns {string|null}
   */
Check that the version of the library is at minimum
the requested one and return the version string;
return NULL if the condition is not satisfied.

See ASN1_VERSION for a suitable version string.
@param {string} [version] required version number
@returns {string|null}
Check that the version of the library is at minimum the requested one and return the version string ; return NULL if the condition is not satisfied . See ASN1_VERSION for a suitable version string . @param { string } [ version ] required version number @returns { string|null }
check_version(version) {
    if (typeof version !== 'string') {
      throw new TypeError('Expected string');
    }
    const mem = this.salloc(version);
    const ptr = this[_module]._asn1_check_version(mem);
    this.free(mem);
    if (ptr === 0) {
      return null;
    }
    return pointer2string(this.memory, ptr);
  }
check_version ( version ) { if ( typeof version !== 'string' ) { throw new TypeError ( 'Expected string' ) ; } const mem = this . salloc ( version ) ; const ptr = this [ _module ] . _asn1_check_version ( mem ) ; this . free ( mem ) ; if ( ptr === 0 ) { return null ; } return pointer2string ( this . memory , ptr ) ; }
Check that the version of the library is at minimum
 the requested one and return the version string;
 return NULL if the condition is not satisfied.
Check that the version of the library is at minimum the requested one and return the version string ; return NULL if the condition is not satisfied .