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

react-interpunct

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-interpunct

React component to visibly display whitespace characters

latest
Source
npmnpm
Version
1.0.4
Version published
Maintainers
1
Created
Source

react-interpunct

React component to visibly display whitespace characters

NPM JavaScript Style Guide

Install

npm install --save react-interpunct

Usage

import React, { Component } from 'react'

import Interpunct from 'react-interpunct'

class Example extends Component {
  render () {
    return (
      <Interpunct>Your text with  spaces here  </Interpunct>
    )
  }
}

Outputs

Your·text·with··spaces·here··

Props

PropertyTypeDefaultDescription
childrenstringundefinedText to be rendered with Interpunct
matchLengthinteger1Minimum number of consecutive whitespace characters to match before replacing
replacementStringstring· (middle dot)String used to replace whitespace characters
respectLengthbooltrueWhen true the string given for replacementString will be repeated to the length of the matched whitespace. When false replacementString will replace the entire match
enablebooltrueIf set to false then children will be returned without manipulation

License

MIT © FoxxMD

FAQs

Package last updated on 12 Oct 2018

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