source: trip-planner-front/node_modules/stylus/lib/functions/convert.js@ 1ad8e64

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

initial commit

  • Property mode set to 100644
File size: 330 bytes
Line 
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;
Note: See TracBrowser for help on using the repository browser.