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

gulp-spacingWord

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

gulp-spacingWord

This is a stupid gulp plugin use to add a space between English word and Chinese character in your documents.

  • 0.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

This is a stupid gulp plugin use to add a space between English word and Chinese character in your documents.

Adding a space between English and Chinese will increase readability. So, don't use this plugin, you should add that space while you are writing your docs in the first place.

But if you already have many docs have such a issue you may try this plugin.

With this plugin, you will expect transform like below:

'中Chinese文'            => '中 Chinese 文'

'中Chinese文\n世world界' => '中 Chinese 文\n世 world 界'

'Chinese文\n英English'   => 'Chinese 文\n英 English'

'Chinese,\n《hello》'   => 'Chinese,\n《hello》'  # Stay unchanged

You may archive this by using gulp-replace. But you still have to write your own replacer function.

Usage

npm install --save gulp-spacingWord

in your gulpfile.js

const gulp = require('gulp');
const spacing = require('gulp-spacingWord');

gulp.task('spacing', () => {
  gulp.src('draft/**/*.md')
    .pipe(spacing())
    .pipe(gulp.dest('docs'));
});

gulp.task('default', ['spacing'])

License

MIT (c) haishanh

FAQs

Package last updated on 08 Apr 2016

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