New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

cc-text-utils

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cc-text-utils

Text Utilities for ClassicCars.com

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

cc-text-utils

ClassicCars.com Text Utilities - Input Cleanup and Filtering

convert

`var convert = require('cc-text-utils').convert;

toMarkdown

Sanitize Markdown & HTML input and convert to a filtered markdown syntax.

convert.toMarkdown(inputText, options)

options: (optional object)

  • tables (optional Boolean=false) - if set to a truthy value will allow tables as valid tags (these are left in as-is, and isn't well tested)

fromMarkdown

Converts markdown to a sanitized HTML output.

convert.fromMarkdown(inputMarkdown, options)

options: (optional object)

  • nofollow (optional Boolean = false) - when set to a truthy value will add `rel="nofollow" to anchor tags.

toCleanHtml

convert.toCleanHtml(input, options)

Will run the text through fromMarkdown(toMarkdown(input, options), options) effectively sanitizing user description input.

marked

var marked = require('cc-text-utils').marked;

Exposes marked npm package.

to-markdown

var toMarkdown = require('cc-text-utils')['to-markdown'];

Exposes to-markdown npm package

sanitize-html

var sanitize = require('cc-text-utils')['sanitize-html'];

Exposes sanitize-html npm package

Buffer

var Buffer = require('cc-text-utils').Buffer;

Exposes Buffer implementation (mainly for browserified version.

FAQs

Package last updated on 10 Apr 2015

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc