to-single-quotes

2019-01-14 admin

to-single-quotes是什么

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

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

to-single-quotes Build Status

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

Install

$ npm install --save to-single-quotes

Usage

const toSingleQuotes = require('to-single-quotes');

toSingleQuotes('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-50965.html

文章标题:to-single-quotes

回到顶部