source: trip-planner-front/node_modules/stylus/lib/functions/unquote.js@ 84d0fbb

Last change on this file since 84d0fbb was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 465 bytes
Line 
1var utils = require('../utils')
2 , nodes = require('../nodes');
3
4/**
5 * Unquote the given `string`.
6 *
7 * Examples:
8 *
9 * unquote("sans-serif")
10 * // => sans-serif
11 *
12 * unquote(sans-serif)
13 * // => sans-serif
14 *
15 * @param {String|Ident} string
16 * @return {Literal}
17 * @api public
18 */
19
20function unquote(string){
21 utils.assertString(string, 'string');
22 return new nodes.Literal(string.string);
23}
24unquote.params = ['string'];
25module.exports = unquote;
Note: See TracBrowser for help on using the repository browser.