face-api

(★ 1,082)

FaceAPI: AI-powered Face Detection & Rotation Tracking, Face Description & Recognition, Age & Gender & Emotion Prediction for Browser and NodeJS using TensorFlow/JS

File Explorer

  • .build.json
  • .eslintrc.json
  • .gitignore
  • .hintrc
  • .markdownlint.json
  • .npmignore
  • .npmrc
  • api-extractor.json
  • build.js
  • CHANGELOG.md
  • CODE_OF_CONDUCT
  • CONTRIBUTING
  • favicon.ico
  • LICENSE
  • package.json
  • README.md
  • SECURITY.md
  • TODO.md
  • tsconfig.json
  • TUTORIAL.md

# Use via CDN

jsDelivr

jsDelivr serves any public GitHub repository as a CDN with zero setup. Pick a version and a file to get a ready-to-paste link and snippet.

Release Timeline

Command Glossary

Commands referenced in this DOCs, explained below.

🔍

babel

View Details ▼

A transpiler which converts code from JavaScript ES6/ES7 syntax to ES5 syntax.

babel {{path/to/file}}

Transpile a specified input file and output to `stdout`:

babel {{path/to/input_file}} --out-file {{path/to/output_file}}

Transpile a specified input file and output to a specific file:

babel {{path/to/input_file}} --watch

Transpile the input file every time it is changed:

🔍

esbuild

View Details ▼

JavaScript bundler and minifier built for speed.

esbuild --bundle {{path/to/file.js}}

Bundle a JavaScript application and print to `stdout`:

esbuild < {{path/to/file.jsx}} --bundle --outfile={{path/to/out.js}}

Bundle a JSX application from `stdin`:

esbuild --bundle --define:{{process.env.NODE_ENV=\"production\"}} --minify --sourcemap {{path/to/file.js}}

Bundle and minify a JSX application with source maps in `production` mode:

🔍

git clone

View Details ▼

Clone an existing repository.

git clone {{remote_repository_location}} {{path/to/directory}}

Clone an existing repository into a new directory (the default directory is the repository name):

git clone --recursive {{remote_repository_location}}

Clone an existing repository and its submodules:

git clone {{[-n|--no-checkout]}} {{remote_repository_location}}

Clone only the `.git` directory of an existing repository:

🔍

node

View Details ▼

Server-side JavaScript platform (Node.js).

node {{path/to/file}}

Run a JavaScript file:

node

Start a REPL (interactive shell):

node --watch {{path/to/file}}

Execute the specified file restarting the process when an imported file is changed (requires Node.js version 18.11+):

🔍

npm install

View Details ▼

Install Node packages.

npm {{[i|install]}}

Install dependencies listed in `package.json`:

npm {{[i|install]}} {{package_name}}@{{version}}

Download a specific version of a package and add it to the list of dependencies in `package.json`:

npm {{[i|install]}} {{package_name}} {{[-D|--save-dev]}}

Download the latest version of a package and add it to the list of dev dependencies in `package.json`:

🔍

npm run

View Details ▼

Run a script.

npm run

List available scripts:

npm run {{script_name}}

Run a script:

npm run {{script_name}} -- {{argument}} {{--option}}

Pass arguments to a script:

🔍

roll

View Details ▼

Rolls a user-defined dice sequence.

roll {{3d}}

Roll 3 6-sided dice and sums the results:

roll {{d8 + 3}}

Roll 1 8-sided die, add 3, and sum the results:

roll {{4d6h3}}

Roll 4 6-sided dice, keep the 3 highest results, and sum the results:

🔍

webpack

View Details ▼

Bundle a web project's js files and other assets into a single output file.

webpack {{app.js}} {{bundle.js}}

Create a single output file from an entry point file:

webpack {{app.js}} {{bundle.js}} --module-bind '{{css=css}}'

Load CSS files too from the JavaScript file (this uses the CSS loader for CSS files):

webpack {{[-c|--config]}} {{webpack.config.js}} --progress

Pass a configuration file (with e.g. the entry script and the output filename) and show compilation progress:

🔍

script

View Details ▼

Record all terminal output to a typescript file.

script

Record a new session to a file named `typescript` in the current directory:

exit

Stop recording:

script {{path/to/session.out}}

Record a new session to a custom filepath:

// repository documentation