complete redesign: use nodejs on server instead of php - documentation to be updated
This commit is contained in:
23
nodejs/node_modules/stylus/lib/functions/unquote.js
generated
vendored
Normal file
23
nodejs/node_modules/stylus/lib/functions/unquote.js
generated
vendored
Normal file
@@ -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);
|
||||
};
|
Reference in New Issue
Block a user