From 26105034da4fcce7ac883c899d781f016559310d Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 8 Nov 2018 00:38:48 +0800 Subject: switch to vuepress --- node_modules/stylus/lib/functions/p.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 node_modules/stylus/lib/functions/p.js (limited to 'node_modules/stylus/lib/functions/p.js') diff --git a/node_modules/stylus/lib/functions/p.js b/node_modules/stylus/lib/functions/p.js new file mode 100644 index 00000000..7d32e572 --- /dev/null +++ b/node_modules/stylus/lib/functions/p.js @@ -0,0 +1,18 @@ +var utils = require('../utils') + , nodes = require('../nodes'); + +/** + * Inspect the given `expr`. + * + * @param {Expression} expr + * @api public + */ + +(module.exports = function p(){ + [].slice.call(arguments).forEach(function(expr){ + expr = utils.unwrap(expr); + if (!expr.nodes.length) return; + console.log('\u001b[90minspect:\u001b[0m %s', expr.toString().replace(/^\(|\)$/g, '')); + }) + return nodes.null; +}).raw = true; -- cgit v1.2.3