Sha256: 85c4321adff072c2fa559fce43267af0d77a8ecc3f45dd917dac16782d9035e1

Contents?: true

Size: 313 Bytes

Versions: 39

Compression:

Stored size: 313 Bytes

Contents

var utils = require('../utils')
  , nodes = require('../nodes');

/**
 * Warn with the given `msg` prefixed by "Warning: ".
 *
 * @param {String} msg
 * @api public
 */

module.exports = function warn(msg){
  utils.assertType(msg, 'string', 'msg');
  console.warn('Warning: %s', msg.val);
  return nodes.null;
};

Version data entries

39 entries across 20 versions & 2 rubygems

Version Path
ela-3.4.0 node_modules/stylus/lib/functions/warn.js
ela-3.4.0 node_modules/nib/node_modules/stylus/lib/functions/warn.js
ela-3.3.1 node_modules/stylus/lib/functions/warn.js
ela-3.3.1 node_modules/nib/node_modules/stylus/lib/functions/warn.js
ela-3.3.0 node_modules/nib/node_modules/stylus/lib/functions/warn.js
ela-3.3.0 node_modules/stylus/lib/functions/warn.js
ela-3.2.0 node_modules/stylus/lib/functions/warn.js
ela-3.2.0 node_modules/nib/node_modules/stylus/lib/functions/warn.js
ela-3.1.1 node_modules/stylus/lib/functions/warn.js
ela-3.1.1 node_modules/nib/node_modules/stylus/lib/functions/warn.js
ela-3.1.0 node_modules/stylus/lib/functions/warn.js
ela-3.1.0 node_modules/nib/node_modules/stylus/lib/functions/warn.js
ela-3.0.0 node_modules/stylus/lib/functions/warn.js
ela-3.0.0 node_modules/nib/node_modules/stylus/lib/functions/warn.js
ela-2.0.0 node_modules/stylus/lib/functions/warn.js
ela-2.0.0 node_modules/nib/node_modules/stylus/lib/functions/warn.js
ela-1.1.0 node_modules/nib/node_modules/stylus/lib/functions/warn.js
ela-1.1.0 node_modules/stylus/lib/functions/warn.js
stylus-source-0.54.5 vendor/lib/functions/warn.js