to-single-quotes中文文档|to-single-quotes js中文教程|解析

npm npmdoc 2年前 (2021-12-25) 393次浏览

to-single-quotes中文文档|to-single-quotes js中文教程|解析

安装命令:npm i to-single-quotes

单引号

将匹配的双引号转换为单引号:I "love" unicornsI 'love' unicorns

安装

$ npm install to-single-quotes

用法

import toSingleQuotes from 'to-single-quotes';

toSingleQuotes('I love "unicorns" \'and\' "ponies"');
//=> "I love 'unicorns' 'and' 'ponies'"

有关的

项目贡献人员列表:


极客公园 , 版权所有丨如未注明 , 均为原创丨本网站采用BY-NC-SA协议进行授权
转载请注明原文链接:to-single-quotes中文文档|to-single-quotes js中文教程|解析
喜欢 (0)
.excerpt .focus {display:none}