Console.err
Code IndexAdd Codota to your IDE (free)

Best JavaScript code snippets using builtins.Console.err(Showing top 11 results out of 13,617)

origin: klaemo/s3-website

program
 .command('configTemplate')
 .usage('')
 .description('Creates a configuration file template, which can be used to create site by setting config details and running s3-website create')
 .action(function () {
  getConfig('.s3-website.json', templateConfig, function (err, config) { // eslint-disable-line handle-callback-er
   if (err) { console.err(err) }
  })
 })
origin: FantasyGao/About_Node

// build source to weex_bundle with watch mode.
webpack(weexConfig, (err, stats) => {
 if (err) {
  console.err('COMPILE ERROR:', err.stack)
 }
})
origin: tajpure/hexo-editor

moveToDraft(article, workspace) {
  const draft_dir = this.draft_dir;
  const filename = (article.filename ? article.filename : article.title) + suffix;
  const oldPath = this.getPathByWorkspace(workspace) + filename;
  const newPath = draft_dir + filename;
  fs.rename(oldPath, newPath)
   .then((err) => {
    if (err) {
     console.err(err);
    }
   });
 }
origin: tajpure/hexo-editor

moveToPost(article, workspace) {
  const filename = article.filename + suffix;
  const oldPath = this.getPathByWorkspace(workspace) + filename;
  const newPath = this.post_dir + filename;
  fs.rename(oldPath, newPath)
   .then((err) => {
    if (err) {
     console.err(err);
    }
   });
 }
origin: RuntimeTools/appmetrics-dash

// Test to check the list of collections after another collection has been added
tap.test('GET collections (more than one)', function(t) {
 const options = {
  url: base + '/appmetrics/api/v1/collections',
  method: 'GET'
 };
 // Create another collection
 request({url: options.url, method: 'POST' }, function(err) {
  if (err) {
   console.err('Error creating another collection');
  }
  t.ifError(err);
 });
 debug('request %j', options);
 request(options, function(err, res, body) {
  t.ifError(err);
  let expectedResponse = '{"collectionUris":["collections/0","collections/1"]}';
  t.equal(body, expectedResponse);
  t.equal(res.statusCode, 200);
  t.end();
 });
});
origin: service-bot/servicebot

let reset = function(callback){
  if(app && server) {
    server.destroy();
  }
  //todo: don't do this.. but the pool b draining
    setTimeout(function(){
      require("../config/db").destroy().then(function(res){
        console.log("POOL!", res);
        Object.keys(require.cache).forEach(function(key) { delete require.cache[key] });
        knex.raw('DROP DATABASE IF EXISTS testing')
          .then(() => knex.raw('CREATE DATABASE testing'))
          .then(() => require("../app")(initConfig))
          .then(function(newApp){
            server = newApp.listen("3001");
            enableDestroy(server);
            app = newApp;
            callback(true);
        }).catch(function(reason){
          console.err(reason);
        })
      })
    }, 500)

}
origin: tajpure/hexo-editor

deletePost(article) {
  const path = this.trash_dir + article.filename + suffix;
  console.log(path);
  fs.unlink(path)
   .then((err) => {
    if (err) {
     console.err(err);
    }
   });
 }
origin: liupeijun/vue2-hybridapp-haoshiqi

console.err('Error removing batterystatus event listener: ' + e);
origin: liupeijun/vue2-hybridapp-haoshiqi

console.err('Error removing batterylow event listener: ' + e);
origin: tajpure/hexo-editor

moveToTrash(article, workspace) {
  const trash_dir = this.trash_dir;
  const filename = article.filename + suffix;
  const oldPath = this.getPathByWorkspace(workspace) + filename;
  const newPath = trash_dir + filename;
  fs.rename(oldPath, newPath)
   .then((err) => {
    if (err) {
     console.err(err);
    }
   });
 }
origin: liupeijun/vue2-hybridapp-haoshiqi

console.err('Error removing batterycritical event listener: ' + e);
builtins(MDN)Consoleerr

Most used builtins functions

  • Console.log
  • Array.push
    Appends new elements to an array, and returns the new length of the array.
  • Array.length
    Gets or sets the length of the array. This is a number one higher than the highest element defined i
  • JSON.stringify
    Converts a JavaScript value to a JavaScript Object Notation (JSON) string.
  • Array.forEach
    Performs the specified action for each element in an array.
  • ObjectConstructor.keys,
  • Array.map,
  • JSON.parse,
  • setTimeout,
  • Array.join,
  • Promise.then,
  • ObjectConstructor.assign,
  • String.replace,
  • require,
  • parseInt,
  • Promise.catch,
  • ArrayConstructor.isArray,
  • Array.filter,
  • Array.concat

Popular in JavaScript

  • axios
    Promise based HTTP client for the browser and node.js
  • glob
    a little globber
  • webpack
    Packs CommonJs/AMD modules for the browser. Allows to split your codebase into multiple bundles, which can be loaded on demand. Support loaders to preprocess files, i.e. json, jsx, es7, css, less, ... and your custom stuff.
  • superagent
    elegant & feature rich browser / node HTTP with a fluent API
  • redis
    Redis client library
  • moment
    Parse, validate, manipulate, and display dates
  • bluebird
    Full featured Promises/A+ implementation with exceptionally good performance
  • fs-extra
    fs-extra contains methods that aren't included in the vanilla Node.js fs package. Such as mkdir -p, cp -r, and rm -rf.
  • node-fetch
    A light-weight module that brings window.fetch to node.js
  • Top plugins for WebStorm
    The challenge is finding the best plugins for JavaScript development on Intellij IDEs. Who wants to sit there and go over hundreds of plugins to pick the best?

For WebStorm and
Intellij IDEA Ultimate

  • Codota IntelliJ IDEA pluginCodota Android Studio pluginCode IndexSign in
  • EnterpriseFAQAboutContact Us
  • Plugin user guideTerms of usePrivacy policyCodeboxFind Usages
Add Codota to your IDE (free)