UNPKG

330 BJavaScriptView Raw
1var utils = require('../utils');
2
3/**
4 * Like `unquote` but tries to convert
5 * the given `str` to a Stylus node.
6 *
7 * @param {String} str
8 * @return {Node}
9 * @api public
10 */
11
12function convert(str){
13 utils.assertString(str, 'str');
14 return utils.parseString(str.string);
15};
16convert.params = ['str'];
17module.exports = convert;