Skip to content

zebateira/js-libp2p-memory

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

js-libp2p-memory

Discourse posts Build Status Coverage Status Dependency Status Bundle Size js-standard-style standard-readme compliant

JavaScript implementation of a memory transport for libp2p. For testing and prototyping purposes and other closed environment scenarios.

Lead Maintainer

Table of Contents

Install

npm

> npm i libp2p-memory

Use in Node.js

const Memory = require('libp2p-memory')

Libp2p Usage Example

const Libp2p = require('libp2p')
const Memory = require('libp2p-memory')
const MPLEX = require('libp2p-mplex')
const { NOISE } = require('libp2p-noise')

const node = await Libp2p.create({
  modules: {
    transport: [Memory],
    streamMuxer: [MPLEX],
    connEncryption: [NOISE]
  }
})

For more information see libp2p/js-libp2p/doc/CONFIGURATION.md#customizing-transports.

API

Transport

Connection

Contribute

Feel free to join in. All welcome. Open an issue!

This repository falls under the IPFS Code of Conduct.

License

MIT - Protocol Labs 2021

About

libp2p Memory transport

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •