We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fromPEM
Buffer | string
Just a cosmetic typing note:
at https://github.com/fidm/x509/blob/master/src/x509.ts#L296 the data argument is converted via toString in https://github.com/fidm/asn1/blob/master/src/pem.ts#L44, so it seems like it could safely receive a string, and a more general parameter type could be Buffer | string i.e.
data
toString
string
static fromPEM (data: Buffer | string): Certificate { return Certificate.fromPEMs(data)[0] }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Just a cosmetic typing note:
at https://github.com/fidm/x509/blob/master/src/x509.ts#L296 the
data
argument is converted viatoString
in https://github.com/fidm/asn1/blob/master/src/pem.ts#L44, so it seems like it could safely receive astring
, and a more general parameter type could beBuffer | string
i.e.The text was updated successfully, but these errors were encountered: