UCAN
npm install @substrate-system/iso-ucan
UCANs
This is a fork of hugomrdias/iso-ucan.
Contents
- Install
- API
* ESM
* Common JS
- use
* JS
* pre-built JS
``sh`
npm i -S @substrate-system/iso-ucan
This exposes ESM and common JS via package.json exports field.
js
import '@substrate-system/iso-ucan'
`$3
`js
require('@substrate-system/iso-ucan')
`use
$3
`js
import '@substrate-system/iso-ucan'
`$3
This package exposes minified JS files too. Copy them to a location that is
accessible to your web server, then link to them in HTML.#### copy
`sh
cp ./node_modules/@substrate-system/iso-ucan/dist/module.min.js ./public
`#### HTML
`html
``