Skip to content

Latest commit

 

History

History

node-cjs

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

node-cjs

This project demonstrates how to use @huggingface/transformers in a Node.js environment using CommonJS Modules (CJS). The example utilizes require 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-cjs project:
    cd transformers.js-examples/node-cjs
  3. Install the dependencies:
    npm install
  4. Run the example:
    node index.js