New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

fastify-strip-html

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fastify-strip-html

A plugin to automatically strip HTML tags from response payload

latest
Source
npmnpm
Version
0.0.2
Version published
Weekly downloads
7
600%
Maintainers
1
Weekly downloads
 
Created
Source

fastify-strip-html

A plugin to automatically strip HTML tags from response payload

Node.js CI

Install

$ npm i --save fastify-strip-html

Usage

fastify.register(require('fastify-strip-html'), {
  stripFromResponse: true
})

// To test it manually:

console.log(fastify.stripHtml('<a>Hello World</a>'))

// <a>Hello World</a> -> Hello World

Options

NameDescription
stripFromResponseRegister a onSend hook to strip HTML tags out from a string payload.

Test

$ npm test

Acknowledgements

This project is kindly sponsored by:

heply

License

Licensed under MIT

Keywords

fastify

FAQs

Package last updated on 20 Aug 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts