Skip to content

Latest commit

 

History

History

node-esm

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

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