Skip to content

WNFS components for node JS. Use this to run tests in node.

Notifications You must be signed in to change notification settings

ssc-half-light/node-components

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

73 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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()

About

WNFS components for node JS. Use this to run tests in node.

Resources

Stars

Watchers

Forks

Packages

No packages published