Skip to content

Files

Latest commit

Apr 21, 2025
7109a0a · Apr 21, 2025

History

History

node-esm

README.md

node-esm

This project demonstrates how to use @huggingface/transformers in a Node.js environment using ECMAScript Modules (ESM). The example utilizes import statements for module loading.

Instructions

  1. Clone the repository:
    git clone https://github.com/huggingface/transformers.js-examples.git
  2. Change directory to the node-esm project:
    cd transformers.js-examples/node-esm
  3. Install the dependencies:
    npm install
  4. Run the example:
    node index.js