第54期 — 2020-05-10

在浏览器中阅读

周e信

扫描二维码关注微信公众号

Javascript

Neutralinojs

slugify - url友好化多语言文本🔗
const slugify = require("@sindresorhus/slugify");

slugify("I ♥ Dogs");
//=> 'i-love-dogs'

slugify("  Déjà Vu!  ");
//=> 'deja-vu'

slugify("fooBar 123 $#%");
//=> 'foo-bar-123'

slugify("я люблю единорогов");
//=> 'ya-lyublyu-edinorogov'

Sindre Sorhus

SlayLines

前端

Moritz Klack

ufu - 乱码转换工具🔗
import { hex, htx, txt } from "utfu";

const dirty =
  "On a certain level, it�s like shouting �fire� in a crowded theater.";

const cleanHex = hex(dirty);
// --> 'On a certain level, it\u2019s like shouting \u201Cfire\u201D in a crowded theater.'

const cleanHTML = htx(dirty);
// --> 'On a certain level, it’s like shouting “fire” in a crowded theater.'

const cleanTxt = txt(dirty);
// --> 'On a certain level, it’s like shouting “fire” in a crowded theater.'

Daniel Sieradski

Alessio Koci

Blessing Krofegha

CSS Tricks

Daybrush (Younkue Choi)

Paul Le Cam

Ted Krueger

Moritz Klack

Welly

Google

Hanz Luo

Gripeless

Raathi Kugarajan

Tobias Bleckert

运维

Sanket Saurav

Gojko Adzic

shell小窍门🔗
  • Ctrl X X在当前光标和行首切换
  • Ctrl -回撤
  • Ctrl A行首
  • Ctrl E行末
  • Ctrl U剪切当前光标到行首
  • Ctrl K剪切当前光标到行末

Balthazar

Ramit Surana

Tommaso De Rossi

其他

Caddy Web Server

Tyler Morgan-Wall

扫描二维码关注微信公众号
本期阅读量