Socket
Book a DemoInstallSign in
Socket

asianbreak-html

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

asianbreak-html

Automatically strip breaklines from HTML for east asian people, based on new CSS3 spec of white-space property.

1.1.0
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

AsianBreak-html

Automatically strip breaklines from HTML for east asian people, based on new CSS3 spec of white-space property.

npm status

Build Status Dependency Status npm version LICENSE Greenkeeper badge

const Asianbreak = require('asianbreak-html');
const asianbreak = Asianbreak();

asianbreak.pipe(process.stdout);

asianbreak.end(`
    <blockquote>

        婆さんは先刻から暦の話をしきりに為していた。
        <em>みずのえ</em>だの<em>かのと</em>だの、
        八朔だの友引だの、爪を切る日だの普請をする日だのと
        頗る煩いものであった。

        <cite style="
            font-size: 0.8em;
        ">夏目漱石『それから』</cite>

    </blockquote>
`);

output:

<blockquote>

    婆さんは先刻から暦の話をしきりに為していた。<em>みずのえ</em>だの<em>かのと</em>だの、八朔だの友引だの、爪を切る日だの普請をする日だのと頗る煩いものであった。<cite style="
        font-size: 0.8em;
    ">夏目漱石『それから』</cite>

</blockquote>

Background

TODO: write

API

This module exposes single class Asianbreak, which allows you to use your normal stream Transforming API.

Processed HTML is emitted when it is ready even in partial form so it is "streaming." :smiley:

constructor: Asianbreak([options])

  • options: unimplemented

Create new AsianBreak transforming instance. new can be omitted.

Keywords

asianbreak

FAQs

Package last updated on 05 Sep 2017

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.