From ee08c354bb1e3daf3827df5e806a4571f42ba8e4 Mon Sep 17 00:00:00 2001 From: NN Date: Sun, 3 Feb 2019 19:17:42 +0200 Subject: [PATCH] Add generateAppId sample (#78) --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index cb6f083..3b797dd 100644 --- a/README.md +++ b/README.md @@ -97,6 +97,14 @@ crx.load('/path/to/extension') }); ``` +### crx.generateAppId + +Generates application id (extension id) from given path. + +```js +new crx().generateAppId('/path/to/ext') // epgkjnfaepceeghkjflpimappmlalchn +``` + ## CLI API ### crx pack [directory] [-o file] [--zip-output file] [-p private-key]