Skip to content

Latest commit

 

History

History
108 lines (79 loc) · 5.19 KB

README.md

File metadata and controls

108 lines (79 loc) · 5.19 KB

Helia logo

Using Helia from CommonJS


Explore the docs · View Demo · Report Bug · Request Feature/Example

Table of Contents

About The Project

Getting Started

Prerequisites

Make sure you have installed all of the following prerequisites on your development machine:

Installation and Running example

> npm install
> npm start

Usage

This tutorial is a port of helia-101 but the main file is CommonJS and not ESM.

If you are seeing errors like ERR_REQUIRE_ESM or ERR_PACKAGE_PATH_NOT_EXPORTED when trying to use Helia or other ESM modules from CJS, this is the example for you.

It consists of one file, index.js which is a CommonJS file that uses dynamic imports to load an ESM module from CommonJS source code.

Everything else is the same as the helia-101 - please see that example for a full breakdown of the code.

For more examples, please refer to the Documentation

Documentation

Contributing

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Fork the IPFS Project
  2. Create your Feature Branch (git checkout -b feature/amazing-feature)
  3. Commit your Changes (git commit -a -m 'feat: add some amazing feature')
  4. Push to the Branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

Want to hack on IPFS?

The IPFS implementation in JavaScript needs your help! There are a few things you can do right now to help out:

Read the Code of Conduct and JavaScript Contributing Guidelines.

  • Check out existing issues The issue list has many that are marked as 'help wanted' or 'difficulty:easy' which make great starting points for development, many of which can be tackled with no prior IPFS knowledge
  • Look at the Helia Roadmap This are the high priority items being worked on right now
  • Perform code reviews More eyes will help a. speed the project along b. ensure quality, and c. reduce possible future bugs
  • Add tests. There can never be enough tests