aboutsummaryrefslogtreecommitdiff
path: root/node_modules/stylus/lib/functions/unquote.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/stylus/lib/functions/unquote.js')
-rw-r--r--node_modules/stylus/lib/functions/unquote.js23
1 files changed, 23 insertions, 0 deletions
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);
+};