Skip to content
This repository has been archived by the owner on Nov 20, 2024. It is now read-only.

Latest commit

 

History

History
35 lines (27 loc) · 693 Bytes

README.md

File metadata and controls

35 lines (27 loc) · 693 Bytes

node components

Components for node js, so you can run tests in node

install

npm install -D @ssc-half-light/node-components

test this

npm test

example

program

// this runs in node js
import { components } from '@ssc-half-light/node-components'
import * as odd from '@oddjs/odd'

const program = await odd.assemble({
    namespace: { creator: 'test', name: 'testing' },
    debug: false  // must be false
}, components)

createCryptoComponent

import { createCryptoComponent } from '@ssc-half-light/node-components'
// use this anywhere that expects a crypto `Implementation`
const cryptoComponent = await createCryptoComponent()