Skip to content

Commit c69283b

Browse files
authored
feat: add convert subpath export (#246)
I'd like to convert multiaddr segments to / from bytes in a library that can create multiaddrs. Creating a full multiaddr wouldn't make sense, nor would reimplementing the conversion logic if it already exists in this library. Before the ESM version of this library I used multiaddrs/src/convert directly. See usage of `muConvert` here https://github.com/ChainSafe/discv5/blob/master/src/enr/enr.ts
1 parent 3f49fe6 commit c69283b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

package.json

+3
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@
4848
".": {
4949
"import": "./dist/src/index.js"
5050
},
51+
"./convert": {
52+
"import": "./dist/src/convert.js"
53+
},
5154
"./resolvers": {
5255
"import": "./dist/src/resolvers/index.js"
5356
}

0 commit comments

Comments
 (0)