Last change
on this file since eed0bf8 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
330 bytes
|
Rev | Line | |
---|
[6a3a178] | 1 | var 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 |
|
---|
| 12 | function convert(str){
|
---|
| 13 | utils.assertString(str, 'str');
|
---|
| 14 | return utils.parseString(str.string);
|
---|
| 15 | };
|
---|
| 16 | convert.params = ['str'];
|
---|
| 17 | module.exports = convert;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.