Skip to content

Library cannot be used in a browser environment #5

Closed
@bgrieder

Description

@bgrieder

This is in reference to ipfs/js-ipfs#104

The lib reads the protobuf schema from the FS which prevents from using it in a browser environment

const protobuf = require('protocol-buffers')
const schema = fs.readFileSync(path.resolve(__dirname, 'unixfs.proto'))

This prevents adding a Buffer from the browser into the Merkle DAG

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions