From 671748e6ed4f33a755af73d6fac890c38fc3cbf1 Mon Sep 17 00:00:00 2001 From: Mike Date: Sun, 23 May 2021 19:52:46 -0700 Subject: [PATCH] tweak readme --- README.md | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index f7cc813..d7a6884 100644 --- a/README.md +++ b/README.md @@ -31,18 +31,16 @@ arguments You may include a callback function, in the standard node error argument-first format: ```javascript -const verifier = require('alexa-verifier') +import verifier from 'alexa-verifier' -verifier(cert_url, signature, requestRawBody, function callbackFn(er) { +verifier(cert_url, signature, requestRawBody, function callbackFn (er) { // if er, something went wrong }) ``` Ommiting a callback function returns a promise: -```javascript -const verifier = require('alexa-verifier') - +```javascript const verifyPromise = verifier(cert_url, signature, requestRawBody) ```