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-4.1.6 node_modules/stylus/lib/functions/warn.js
ela-4.1.6 node_modules/nib/node_modules/stylus/lib/functions/warn.js
ela-4.1.5 node_modules/stylus/lib/functions/warn.js
ela-4.1.5 node_modules/nib/node_modules/stylus/lib/functions/warn.js
ela-4.1.4 node_modules/nib/node_modules/stylus/lib/functions/warn.js
ela-4.1.4 node_modules/stylus/lib/functions/warn.js
ela-4.1.3 node_modules/stylus/lib/functions/warn.js
ela-4.1.3 node_modules/nib/node_modules/stylus/lib/functions/warn.js
ela-4.1.2 node_modules/stylus/lib/functions/warn.js
ela-4.1.2 node_modules/nib/node_modules/stylus/lib/functions/warn.js
ela-4.1.1 node_modules/stylus/lib/functions/warn.js
ela-4.1.1 node_modules/nib/node_modules/stylus/lib/functions/warn.js
ela-4.1.0 node_modules/stylus/lib/functions/warn.js
ela-4.1.0 node_modules/nib/node_modules/stylus/lib/functions/warn.js
ela-4.0.0 node_modules/stylus/lib/functions/warn.js
ela-4.0.0 node_modules/nib/node_modules/stylus/lib/functions/warn.js
ela-3.4.3 node_modules/stylus/lib/functions/warn.js
ela-3.4.3 node_modules/nib/node_modules/stylus/lib/functions/warn.js
ela-3.4.2 node_modules/nib/node_modules/stylus/lib/functions/warn.js
ela-3.4.2 node_modules/stylus/lib/functions/warn.js