From 26105034da4fcce7ac883c899d781f016559310d Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 8 Nov 2018 00:38:48 +0800 Subject: switch to vuepress --- node_modules/stylus/lib/functions/unquote.js | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 node_modules/stylus/lib/functions/unquote.js (limited to 'node_modules/stylus/lib/functions/unquote.js') diff --git a/node_modules/stylus/lib/functions/unquote.js b/node_modules/stylus/lib/functions/unquote.js new file mode 100644 index 00000000..41ebb807 --- /dev/null +++ b/node_modules/stylus/lib/functions/unquote.js @@ -0,0 +1,23 @@ +var utils = require('../utils') + , nodes = require('../nodes'); + +/** + * Unquote the given `string`. + * + * Examples: + * + * unquote("sans-serif") + * // => sans-serif + * + * unquote(sans-serif) + * // => sans-serif + * + * @param {String|Ident} string + * @return {Literal} + * @api public + */ + +module.exports = function unquote(string){ + utils.assertString(string, 'string'); + return new nodes.Literal(string.string); +}; -- cgit v1.2.3