face-api
FaceAPI: AI-powered Face Detection & Rotation Tracking, Face Description & Recognition, Age & Gender & Emotion Prediction for Browser and NodeJS using TensorFlow/JS
File Explorer
- issue.md
- pull_request_template.md
- codeql-analysis.yml
- FUNDING.yml
- settings.json
- facemesh.png
- index.html
- index.js
- node-canvas.js
- node-face-compare.js
- node-image.js
- node-match.js
- node-multiprocess-worker.js
- node-multiprocess.js
- node-simple.js
- node-wasm.js
- node.js
- sample1.jpg
- sample2.jpg
- sample3.jpg
- sample4.jpg
- sample5.jpg
- sample6.jpg
- screenshot-images.png
- screenshot-webcam.png
- webcam.html
- webcam.js
- face-api.d.ts
- face-api.esm-nobundle.d.ts
- face-api.esm-nobundle.js
- face-api.esm.d.ts
- face-api.esm.js
- face-api.esm.js.map
- face-api.js
- face-api.node-gpu.d.ts
- face-api.node-gpu.js
- face-api.node-wasm.d.ts
- face-api.node-wasm.js
- face-api.node.d.ts
- face-api.node.js
- tfjs.esm.d.ts
- tfjs.esm.js
- tfjs.version.d.ts
- tfjs.version.js
- age_gender_model-weights_manifest.json
- age_gender_model.bin
- face_expression_model-weights_manifest.json
- face_expression_model.bin
- face_landmark_68_model-weights_manifest.json
- face_landmark_68_model.bin
- face_landmark_68_tiny_model-weights_manifest.json
- face_landmark_68_tiny_model.bin
- face_recognition_model-weights_manifest.json
- face_recognition_model.bin
- ssd_mobilenetv1_model-weights_manifest.json
- ssd_mobilenetv1_model.bin
- tiny_face_detector_model-weights_manifest.json
- tiny_face_detector_model.bin
- AgeGenderNet.ts
- extractParams.ts
- extractParamsFromWeightMap.ts
- index.ts
- types.ts
- BoundingBox.ts
- Box.ts
- Dimensions.ts
- FaceDetection.ts
- FaceLandmarks.ts
- FaceLandmarks5.ts
- FaceLandmarks68.ts
- FaceMatch.ts
- index.ts
- LabeledBox.ts
- LabeledFaceDescriptors.ts
- ObjectDetection.ts
- Point.ts
- PredictedBox.ts
- Rect.ts
- convLayer.ts
- depthwiseSeparableConv.ts
- disposeUnusedWeightTensors.ts
- extractConvParamsFactory.ts
- extractFCParamsFactory.ts
- extractSeparableConvParamsFactory.ts
- extractWeightEntryFactory.ts
- extractWeightsFactory.ts
- fullyConnectedLayer.ts
- getModelUris.ts
- index.ts
- loadConvParamsFactory.ts
- types.ts
- awaitMediaLoaded.ts
- bufferToImage.ts
- bufferToVideo.ts
- createCanvas.ts
- extractFaces.ts
- extractFaceTensors.ts
- fetchImage.ts
- fetchJson.ts
- fetchNetWeights.ts
- fetchOrThrow.ts
- fetchVideo.ts
- getContext2dOrThrow.ts
- getMediaDimensions.ts
- imageTensorToCanvas.ts
- imageToSquare.ts
- index.ts
- isMediaElement.ts
- isMediaLoaded.ts
- loadWeightMap.ts
- matchDimensions.ts
- NetInput.ts
- resolveInput.ts
- toNetInput.ts
- types.ts
- DrawBox.ts
- drawContour.ts
- drawDetections.ts
- drawFaceExpressions.ts
- DrawFaceLandmarks.ts
- DrawTextField.ts
- index.ts
- createBrowserEnv.ts
- createFileSystem.ts
- createNodejsEnv.ts
- index.ts
- isBrowser.ts
- isNodejs.ts
- types.ts
- FaceExpressionNet.ts
- FaceExpressions.ts
- index.ts
- denseBlock.ts
- extractorsFactory.ts
- extractParams.ts
- extractParamsFromWeightMap.ts
- extractParamsFromWeightMapTiny.ts
- extractParamsTiny.ts
- FaceFeatureExtractor.ts
- index.ts
- loadParamsFactory.ts
- TinyFaceFeatureExtractor.ts
- types.ts
- FaceLandmark68Net.ts
- FaceLandmark68NetBase.ts
- FaceLandmark68TinyNet.ts
- index.ts
- extractParams.ts
- extractParamsFromWeightMap.ts
- FaceProcessor.ts
- types.ts
- util.ts
- convLayer.ts
- extractParams.ts
- extractParamsFromWeightMap.ts
- FaceRecognitionNet.ts
- index.ts
- residualLayer.ts
- scaleLayer.ts
- types.ts
- index.ts
- WithAge.ts
- WithFaceDescriptor.ts
- WithFaceDetection.ts
- WithFaceExpressions.ts
- WithFaceLandmarks.ts
- WithGender.ts
- allFaces.ts
- ComposableTask.ts
- ComputeFaceDescriptorsTasks.ts
- DetectFaceLandmarksTasks.ts
- detectFaces.ts
- DetectFacesTasks.ts
- extractFacesAndComputeResults.ts
- FaceMatcher.ts
- index.ts
- nets.ts
- PredictAgeAndGenderTask.ts
- PredictFaceExpressionsTask.ts
- types.ts
- index.ts
- iou.ts
- minBbox.ts
- nonMaxSuppression.ts
- normalize.ts
- padToSquare.ts
- shuffleArray.ts
- boxPredictionLayer.ts
- extractParams.ts
- extractParamsFromWeightMap.ts
- index.ts
- mobileNetV1.ts
- nonMaxSuppression.ts
- outputLayer.ts
- pointwiseConvLayer.ts
- predictionLayer.ts
- SsdMobilenetv1.ts
- SsdMobilenetv1Options.ts
- types.ts
- tf-browser.ts
- tf-node-gpu.ts
- tf-node-wasm.ts
- tf-node.ts
- tf-version.ts
- const.ts
- index.ts
- TinyFaceDetector.ts
- TinyFaceDetectorOptions.ts
- config.ts
- const.ts
- convWithBatchNorm.ts
- depthwiseSeparableConv.ts
- extractParams.ts
- extractParamsFromWeightMap.ts
- index.ts
- leaky.ts
- TinyYolov2.ts
- TinyYolov2Base.ts
- TinyYolov2Options.ts
- types.ts
- eslint.json
- long.d.ts
- offscreencanvas.d.ts
- tfjs.esm.d.ts
- tsconfig.json
- webgpu.d.ts
- index.ts
- extractParams.ts
- extractParamsFromWeightMap.ts
- TinyXception.ts
- types.ts
- euclideanDistance.ts
- index.ts
- NeuralNetwork.ts
- Platform.ts
- resizeResults.ts
- test-node.js
- hierarchy.js
- highlight.css
- icons.js
- icons.svg
- main.js
- navigation.js
- search.js
- style.css
- AgeGenderNet.html
- BoundingBox.html
- Box.html
- ComposableTask.html
- ComputeAllFaceDescriptorsTask.html
- ComputeFaceDescriptorsTaskBase.html
- ComputeSingleFaceDescriptorTask.html
- DetectAllFaceLandmarksTask.html
- DetectAllFacesTask.html
- DetectFaceLandmarksTaskBase.html
- DetectFacesTaskBase.html
- DetectSingleFaceLandmarksTask.html
- DetectSingleFaceTask.html
- Dimensions.html
- draw.DrawBox.html
- draw.DrawBoxOptions.html
- draw.DrawFaceLandmarks.html
- draw.DrawFaceLandmarksOptions.html
- draw.DrawTextField.html
- draw.DrawTextFieldOptions.html
- FaceDetection.html
- FaceDetectionNet.html
- FaceExpressionNet.html
- FaceExpressions.html
- FaceLandmark68Net.html
- FaceLandmark68TinyNet.html
- FaceLandmarkNet.html
- FaceLandmarks.html
- FaceLandmarks5.html
- FaceLandmarks68.html
- FaceMatch.html
- FaceMatcher.html
- FaceRecognitionNet.html
- LabeledBox.html
- LabeledFaceDescriptors.html
- NetInput.html
- NeuralNetwork.html
- ObjectDetection.html
- Point.html
- PredictedBox.html
- Rect.html
- SsdMobilenetv1.html
- SsdMobilenetv1Options.html
- tf.io.CompositeArrayBuffer.html
- tf.Tensor-1.html
- tf.Variable.html
- TinyFaceDetector.html
- TinyFaceDetectorOptions.html
- TinyYolov2.html
- TinyYolov2Options.html
- draw.AnchorPosition.html
- Gender.html
- tf.Rank.html
- allFaces.html
- allFacesSsdMobilenetv1.html
- allFacesTinyYolov2.html
- awaitMediaLoaded.html
- bufferToImage.html
- computeFaceDescriptor.html
- createCanvas.html
- createCanvasFromMedia.html
- createFaceDetectionNet.html
- createFaceRecognitionNet.html
- createSsdMobilenetv1.html
- createTinyFaceDetector.html
- createTinyYolov2.html
- detectAllFaces.html
- detectFaceLandmarks.html
- detectFaceLandmarksTiny.html
- detectLandmarks.html
- detectSingleFace.html
- draw.drawContour.html
- draw.drawDetections.html
- draw.drawFaceExpressions.html
- draw.drawFaceLandmarks-1.html
- euclideanDistance.html
- extendWithAge.html
- extendWithFaceDescriptor.html
- extendWithFaceDetection.html
- extendWithFaceExpressions.html
- extendWithFaceLandmarks.html
- extendWithGender.html
- extractFaces.html
- extractFaceTensors.html
- fetchImage.html
- fetchJson.html
- fetchNetWeights.html
- fetchOrThrow.html
- fetchVideo.html
- getContext2dOrThrow.html
- getMediaDimensions.html
- imageTensorToCanvas.html
- imageToSquare.html
- inverseSigmoid.html
- iou.html
- isMediaElement.html
- isMediaLoaded.html
- isWithAge.html
- isWithFaceDetection.html
- isWithFaceExpressions.html
- isWithFaceLandmarks.html
- isWithGender.html
- loadAgeGenderModel.html
- loadFaceDetectionModel.html
- loadFaceExpressionModel.html
- loadFaceLandmarkModel.html
- loadFaceLandmarkTinyModel.html
- loadFaceRecognitionModel.html
- loadSsdMobilenetv1Model.html
- loadTinyFaceDetectorModel.html
- loadTinyYolov2Model.html
- loadWeightMap.html
- locateFaces.html
- matchDimensions.html
- minBbox.html
- nonMaxSuppression.html
- normalize.html
- padToSquare.html
- predictAgeAndGender.html
- recognizeFaceExpressions.html
- resizeResults.html
- resolveInput.html
- shuffleArray.html
- sigmoid.html
- ssdMobilenetv1-1.html
- tf.add.html
- tf.avgPool.html
- tf.batchNorm.html
- tf.browser.draw.html
- tf.browser.fromPixels.html
- tf.browser.fromPixelsAsync.html
- tf.browser.toPixels.html
- tf.cast.html
- tf.clipByValue.html
- tf.concat.html
- tf.conv2d.html
- tf.depthwiseConv2d.html
- tf.div.html
- tf.exp.html
- tf.expandDims.html
- tf.fill.html
- tf.io.browserFiles.html
- tf.io.browserHTTPRequest.html
- tf.io.concatenateArrayBuffers.html
- tf.io.copyModel.html
- tf.io.decodeWeights.html
- tf.io.decodeWeightsStream.html
- tf.io.encodeWeights.html
- tf.io.fromMemory.html
- tf.io.fromMemorySync.html
- tf.io.getLoadHandlers.html
- tf.io.getModelArtifactsForJSON.html
- tf.io.getModelArtifactsForJSONSync.html
- tf.io.getModelArtifactsInfoForJSON.html
- tf.io.getSaveHandlers.html
- tf.io.getWeightSpecs.html
- tf.io.http.html
- tf.io.isHTTPScheme.html
- tf.io.listModels.html
- tf.io.loadWeights.html
- tf.io.moveModel.html
- tf.io.registerLoadRouter.html
- tf.io.registerSaveRouter.html
- tf.io.removeModel.html
- tf.io.weightsLoaderFactory.html
- tf.io.withSaveHandler.html
- tf.io.withSaveHandlerSync.html
- tf.matMul.html
- tf.maxPool.html
- tf.mul.html
- tf.pad.html
- tf.relu.html
- tf.reshape.html
- tf.scalar.html
- tf.separableConv2d.html
- tf.sigmoid.html
- tf.slice.html
- tf.slice3d.html
- tf.softmax.html
- tf.stack.html
- tf.sub.html
- tf.tensor-2.html
- tf.tensor1d-1.html
- tf.tensor2d-1.html
- tf.tensor3d-1.html
- tf.tensor4d-1.html
- tf.tidy.html
- tf.tile.html
- tf.transpose.html
- tf.unstack.html
- tf.zeros.html
- tinyFaceDetector-1.html
- tinyYolov2-1.html
- toNetInput.html
- utils.computeReshapedDimensions.html
- utils.getCenterPoint.html
- utils.isDimensions.html
- utils.isEven.html
- utils.isFloat.html
- utils.isTensor.html
- utils.isTensor1D.html
- utils.isTensor2D.html
- utils.isTensor3D.html
- utils.isTensor4D.html
- utils.isValidNumber.html
- utils.isValidProbablitiy.html
- utils.range.html
- utils.round.html
- validateConfig.html
- draw.IDrawBoxOptions.html
- draw.IDrawFaceLandmarksOptions.html
- draw.IDrawTextFieldOptions.html
- IBoundingBox.html
- IDimensions.html
- IFaceDetecion.html
- IFaceLandmarks.html
- IFaceMatch.html
- IPoint.html
- IRect.html
- ISsdMobilenetv1Options.html
- ITinyYolov2Options.html
- tf.io.IOHandler.html
- tf.io.LoadOptions.html
- tf.io.ModelArtifacts.html
- tf.io.ModelArtifactsInfo.html
- tf.io.ModelJSON.html
- tf.io.ModelStoreManager.html
- tf.io.RequestDetails.html
- tf.io.SaveConfig.html
- tf.io.SaveResult.html
- tf.io.TrainingConfig.html
- tf.io.WeightsManifestEntry.html
- draw.html
- tf.browser.html
- tf.html
- tf.io.html
- tf.Tensor.html
- utils.html
- AgeAndGenderPrediction.html
- BatchNorm.html
- ConvWithBatchNorm.html
- DefaultTinyYolov2NetParams.html
- draw.DrawFaceExpressionsInput.html
- draw.DrawFaceLandmarksInput.html
- draw.TDrawDetectionsInput.html
- Environment.html
- FaceDetectionFunction.html
- FaceDetectionOptions.html
- FileSystem.html
- ITinyFaceDetectorOptions.html
- MobilenetParams.html
- NetOutput.html
- NetParams.html
- tf.io.IOHandlerSync.html
- tf.io.LoadHandler.html
- tf.io.OnProgressCallback.html
- tf.io.SaveHandler.html
- tf.io.WeightData.html
- tf.io.WeightGroup.html
- tf.io.WeightsManifestConfig.html
- tf.NamedTensorMap.html
- tf.Tensor1D.html
- tf.Tensor2D.html
- tf.Tensor3D.html
- tf.Tensor4D.html
- tf.Tensor5D.html
- tf.TensorLike.html
- TinyYolov2Config.html
- TinyYolov2ExtractBoxesResult.html
- TinyYolov2NetParams.html
- TMediaElement.html
- TNetInput.html
- TResolvedNetInput.html
- WithAge.html
- WithFaceDescriptor.html
- WithFaceDetection.html
- WithFaceExpressions.html
- WithFaceLandmarks.html
- WithGender.html
- env.html
- FACE_EXPRESSION_LABELS.html
- nets.html
- tf.ENV.html
- tf.image.html
- tf.version.html
- version.html
- .nojekyll
- hierarchy.html
- index.html
- tfjs.esm.d.ts
- AgeGenderNet.d.ts
- extractParams.d.ts
- extractParamsFromWeightMap.d.ts
- index.d.ts
- types.d.ts
- BoundingBox.d.ts
- Box.d.ts
- Dimensions.d.ts
- FaceDetection.d.ts
- FaceLandmarks.d.ts
- FaceLandmarks5.d.ts
- FaceLandmarks68.d.ts
- FaceMatch.d.ts
- index.d.ts
- LabeledBox.d.ts
- LabeledFaceDescriptors.d.ts
- ObjectDetection.d.ts
- Point.d.ts
- PredictedBox.d.ts
- Rect.d.ts
- convLayer.d.ts
- depthwiseSeparableConv.d.ts
- disposeUnusedWeightTensors.d.ts
- extractConvParamsFactory.d.ts
- extractFCParamsFactory.d.ts
- extractSeparableConvParamsFactory.d.ts
- extractWeightEntryFactory.d.ts
- extractWeightsFactory.d.ts
- fullyConnectedLayer.d.ts
- getModelUris.d.ts
- index.d.ts
- loadConvParamsFactory.d.ts
- types.d.ts
- awaitMediaLoaded.d.ts
- bufferToImage.d.ts
- bufferToVideo.d.ts
- createCanvas.d.ts
- extractFaces.d.ts
- extractFaceTensors.d.ts
- fetchImage.d.ts
- fetchJson.d.ts
- fetchNetWeights.d.ts
- fetchOrThrow.d.ts
- fetchVideo.d.ts
- getContext2dOrThrow.d.ts
- getMediaDimensions.d.ts
- imageTensorToCanvas.d.ts
- imageToSquare.d.ts
- index.d.ts
- isMediaElement.d.ts
- isMediaLoaded.d.ts
- loadWeightMap.d.ts
- matchDimensions.d.ts
- NetInput.d.ts
- resolveInput.d.ts
- toNetInput.d.ts
- types.d.ts
- DrawBox.d.ts
- drawContour.d.ts
- drawDetections.d.ts
- drawFaceExpressions.d.ts
- DrawFaceLandmarks.d.ts
- DrawTextField.d.ts
- index.d.ts
- createBrowserEnv.d.ts
- createFileSystem.d.ts
- createNodejsEnv.d.ts
- index.d.ts
- isBrowser.d.ts
- isNodejs.d.ts
- types.d.ts
- FaceExpressionNet.d.ts
- FaceExpressions.d.ts
- index.d.ts
- denseBlock.d.ts
- extractorsFactory.d.ts
- extractParams.d.ts
- extractParamsFromWeightMap.d.ts
- extractParamsFromWeightMapTiny.d.ts
- extractParamsTiny.d.ts
- FaceFeatureExtractor.d.ts
- loadParamsFactory.d.ts
- TinyFaceFeatureExtractor.d.ts
- types.d.ts
- FaceLandmark68Net.d.ts
- FaceLandmark68NetBase.d.ts
- FaceLandmark68TinyNet.d.ts
- index.d.ts
- extractParams.d.ts
- extractParamsFromWeightMap.d.ts
- FaceProcessor.d.ts
- types.d.ts
- util.d.ts
- convLayer.d.ts
- extractParams.d.ts
- extractParamsFromWeightMap.d.ts
- FaceRecognitionNet.d.ts
- index.d.ts
- residualLayer.d.ts
- scaleLayer.d.ts
- types.d.ts
- index.d.ts
- WithAge.d.ts
- WithFaceDescriptor.d.ts
- WithFaceDetection.d.ts
- WithFaceExpressions.d.ts
- WithFaceLandmarks.d.ts
- WithGender.d.ts
- allFaces.d.ts
- ComposableTask.d.ts
- ComputeFaceDescriptorsTasks.d.ts
- DetectFaceLandmarksTasks.d.ts
- detectFaces.d.ts
- DetectFacesTasks.d.ts
- extractFacesAndComputeResults.d.ts
- FaceMatcher.d.ts
- index.d.ts
- nets.d.ts
- PredictAgeAndGenderTask.d.ts
- PredictFaceExpressionsTask.d.ts
- types.d.ts
- index.d.ts
- iou.d.ts
- minBbox.d.ts
- nonMaxSuppression.d.ts
- normalize.d.ts
- padToSquare.d.ts
- shuffleArray.d.ts
- boxPredictionLayer.d.ts
- extractParams.d.ts
- extractParamsFromWeightMap.d.ts
- index.d.ts
- mobileNetV1.d.ts
- nonMaxSuppression.d.ts
- outputLayer.d.ts
- pointwiseConvLayer.d.ts
- predictionLayer.d.ts
- SsdMobilenetv1.d.ts
- SsdMobilenetv1Options.d.ts
- types.d.ts
- const.d.ts
- index.d.ts
- TinyFaceDetector.d.ts
- TinyFaceDetectorOptions.d.ts
- config.d.ts
- const.d.ts
- convWithBatchNorm.d.ts
- depthwiseSeparableConv.d.ts
- extractParams.d.ts
- extractParamsFromWeightMap.d.ts
- index.d.ts
- leaky.d.ts
- TinyYolov2.d.ts
- TinyYolov2Base.d.ts
- TinyYolov2Options.d.ts
- types.d.ts
- index.d.ts
- extractParams.d.ts
- extractParamsFromWeightMap.d.ts
- TinyXception.d.ts
- types.d.ts
- euclideanDistance.d.ts
- index.d.ts
- NeuralNetwork.d.ts
- resizeResults.d.ts
- face-api.d.ts
- .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
jsDelivrjsDelivr 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
- 2023-06-12 FaceAPI v1.7.12
- 2022-07-25 FaceAPI v1.7
- 2022-02-07 FaceAPI v1.6
- 2021-10-19 FaceAPI v1.5
- 2021-07-29 FaceAPI v1.4
- 2021-06-19 FaceAPI v1.3
- 2021-05-02 FaceAPI v1.2
- 2021-03-09 FaceAPI v1
- 2021-02-19 FaceAPI Preview Release Pre-release
- 2020-10-11 FaceAPI Alpha Release Pre-release
Command Glossary
Commands referenced in this DOCs, explained below.
babel
View Details ▼
babel
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 ▼
esbuild
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 ▼
git clone
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 ▼
node
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 ▼
npm install
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 ▼
npm run
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 ▼
roll
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 ▼
webpack
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 ▼
script
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:
