FeathersJS hook for validating input using superstruct
npm install feathers-hooks-validate-superstruct
const validateSuperstruct = require('feathers-hooks-validate-superstruct');
const app = ...; // feathers app object
const Struct = ...; // superstruct instance
app.service('service-name').hooks({
before: {
create: validateSuperstruct(Struct)
}
});