to-double-quotes

2019-01-14 admin

to-double-quotes是什么

什么是to-double-quotes,Convert matching single-quotes to double-quotes: I 'love' unicorns → I "love" unicorns

to-double-quotes使用教程帮助文档

to-double-quotes Build Status

Convert matching single-quotes to double-quotes: I 'love' unicornsI "love" unicorns

Install

$ npm install --save to-double-quotes

Usage

const toDoubleQuotes = require('to-double-quotes');

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

Related

License

MIT © Sindre Sorhus

本站文章除注明转载外,均为本站原创或编译。欢迎任何形式的转载,但请务必注明出处。

转载请注明:文章转载自 JavaScript中文网 [https://www.javascriptcn.com]

本文地址:https://www.javascriptcn.com/read-50964.html

文章标题:to-double-quotes

回到顶部