{"repo":"vinta/pangu.js","free":true,"listed":false,"github":"https://github.com/vinta/pangu.js","clone":"git clone https://github.com/vinta/pangu.js.git","description":"Opinionated paranoid text spacing in JavaScript","language":"TypeScript","stars":4798,"topics":["pangu","nodejs","text-spacing","chrome-extensions","javascipt","pangu-spacing","typescript","text-autospace"],"license":"MIT","category":"dev-tools","readme_excerpt":"為什麼你們就是不能加個空格呢？ 如果你跟我一樣，每次看到網頁上的中文字和英文、數字、符號擠在一塊，就會坐立難安，忍不住想在它們之間加個空格。這個 Google Chrome 外掛正是你在網路世界走跳所需要的東西，它會自動替你在網頁中所有的中文字和半形的英文、數字、符號之間插入空白。 漢學家稱這個空白字元為「盤古之白」，因為它劈開了全形字和半形字之間的混沌。另有研究顯示，打字的時候不喜歡在中文和英文之間加空格的人，感情路都走得很辛苦，有七成的比例會在 34 歲的時候跟自己不愛的人結婚，而其餘三成的人最後只能把遺產留給自己的貓。畢竟愛情跟書寫都需要適時地留白。 與大家共勉之。 Installation For Users - Official support: - Google Chrome Extension - Community support: - Paranoid Text Spacing - 盤古之白 - 文案排版轉換 For Developers - Official support: - pangu.js - pangu.py - pangu.go - pangu.java - pangu.space - Community support: - pangu.clj - pangu.dart - pangu.ex - pangu.objective-c - pangu.php - pangu.rb - pangu.rs - pangu.swift - pangu.skill Usage Learn more in the changelog or on npm. Browser Make sure to import from pangu/browser in ESM, which is the DOM-aware build ( spacingNode() , autoSpacingPage() ) with matching TypeScript types and resolves correctly across all bundlers. Also on: - jsDelivr - https://cdn.jsdelivr.net/npm/pangu@x.y.z/dist/browser/pangu.umd.js - unpkg - https://unpkg.com/pangu@x.y.z/dist/browser/pangu.umd.js - cdnjs - https://cdnjs.cloudflare.com/ajax/libs/pangu/x.y.z/browser/pangu.umd.min.js Replace x.y.z with the version you want to use. Node.js You SHOULD NOT use pangu.js to spacing Markdown documents, this library is specially designed for HTML webpages and plain texts without any markup language. See issue #127. CLI License Released under the MIT License. Author - GitHub: @vinta - Twitter: @vinta - Website: vinta.ws","default_branch":null,"files":null,"tree":[],"storefront":"/r/vinta","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/vinta/pangu.js/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}