@expo/pkcs12 0.0.5 → 0.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +18 -4
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -1,12 +1,26 @@
1
- # PKCS#12
1
+ <!-- Title -->
2
+ <h1 align="center">
3
+ 👋 Welcome to <br><code>@expo/pkcs12</code>
4
+ </h1>
2
5
 
3
- PKCS#12 utility functions to extract certificates from conventional and keystore PKCS#12 files
6
+ <p align="center">PKCS#12 utility functions to extract certificates from conventional and keystore PKCS#12 files
7
+ .</p>
8
+
9
+ <p align="center">
10
+ <img src="https://flat.badgen.net/packagephobia/install/@expo/pkcs12">
11
+
12
+ <a href="https://www.npmjs.com/package/@expo/pkcs12">
13
+ <img src="https://flat.badgen.net/npm/dw/@expo/pkcs12" target="_blank" />
14
+ </a>
15
+ </p>
16
+
17
+ <!-- Body -->
4
18
 
5
19
  # Examples
6
20
 
7
21
  ## Extracting a certificate from a conventional PKCS#12 file
8
22
 
9
- ```
23
+ ```js
10
24
  const p12 = parsePKCS12(base64EncodedP12, password); // deserializes encodedP12
11
25
  const certificate = getX509Certificate(p12); // extracts single certificate from p12
12
26
  const sha1Fingerprint = getCertificateFingerprint(certificate, {
@@ -16,7 +30,7 @@ const sha1Fingerprint = getCertificateFingerprint(certificate, {
16
30
 
17
31
  ## Extracting a certificate from a keystore in a PKCS#12 file
18
32
 
19
- ```
33
+ ```js
20
34
  const p12 = parsePKCS12(base64EncodedP12, password); // deserializes encodedP12
21
35
  const certificate = getX509CertificateByFriendlyName(p12, alias); // extracts single certificate stored under alias in p12
22
36
  const sha1Fingerprint = getCertificateFingerprint(certificate, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@expo/pkcs12",
3
- "version": "0.0.5",
3
+ "version": "0.0.8",
4
4
  "description": "PKCS#12 Utilities for Node.js",
5
5
  "main": "build/index.js",
6
6
  "scripts": {
@@ -22,12 +22,12 @@
22
22
  "bugs": {
23
23
  "url": "https://github.com/expo/expo-cli/issues"
24
24
  },
25
- "homepage": "https://github.com/expo/expo-cli/tree/master/packages/pkcs12#readme",
25
+ "homepage": "https://github.com/expo/expo-cli/tree/main/packages/pkcs12#readme",
26
26
  "files": [
27
27
  "build"
28
28
  ],
29
29
  "dependencies": {
30
- "node-forge": "^0.10.0"
30
+ "node-forge": "^1.2.1"
31
31
  },
32
32
  "publishConfig": {
33
33
  "access": "public"