Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

@hapi/disinfect

const registerPlugins = async (server) => Promise.all([    server.register({        plugin: require('disinfect'),        options: {            disinfectQuery: true,            disinfectParams: true,            disinfectPayload: true        }    })]); registerPlugins(server)    .then(() => {        // ...    })    .catch((err) => {        // ...    }) 
Source by www.npmjs.com #
 
PREVIOUS NEXT
Tagged:
ADD COMMENT
Topic
Name
5+1 =