Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

curlyquotes

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

curlyquotes

Applying curly quotes to your web page.

  • 1.5.5
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

curlyquotes

dependency status devDependency status build status npm version

Dynamically apply smart curly quotes to your web page.

yarn add curlyquotes
import * as curlyquotes from "curlyquotes"
curlyquotes.observe()

The code snippet above will detect all straight quotes and convert them to smart versions, and will continue to observe changes in the DOM tree and apply the changes.

Usage

DOM

Notes: The following three DOM methods of curlyquotes accept an optional Node, which falls back to document.body if omitted.

/**
 * Recursively walk through and convert all child nodes
 * of `rootNode`.
 */
export function init(rootNode?: Node): void

/** Starts observing the `node`. */
export function observe(node?: Node): void

/** Stops all observations started by `observe` to `node`. */
export function disconnect(node?: Node): void

/** Provide a CSS selector used to ignore matched nodes. */
export function ignore(selector: string): void

/** Returns a new string with smartquotes applied. */
export function string(source: string): string

Supported Browsers

The latest three versions of all evergreen browsers.

License

BSD 3 Clause

Keywords

FAQs

Package last updated on 11 Sep 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

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