npm install caller errio eventemitter3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var wcf = require('wcf') | |
var {basename, resolve} = require('path') | |
// mocks > | |
var globSync = () => [] | |
var happyPackPlugin = (x) => x | |
// < mocks | |
var f = wcf.create() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const nodeNotifier = require('node-notifier') | |
const { | |
format, | |
inspect | |
} = require('util') | |
const CONSOLE = Object.assign({}, console) | |
const DEFAULT = { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = [] | |
.concat([ | |
'reset', | |
'bold', | |
'dim', | |
'italic', | |
'underline', | |
'blink', | |
, | |
'inverse', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function nextify (middlewares, callback) { | |
return (...args) => { | |
middlewares.slice(0).reverse().reduce((next, fn) => { | |
return () => fn(...args, (err) => { | |
if (err) { | |
return callback(err) | |
} | |
next() | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const {sep: platformSep} = require('path') | |
const {inspect} = require('util') | |
const POSIX_SEP = '/' | |
const WIN32_SEP = '\\' | |
const PATH_SEPARATORS = { | |
'aix': POSIX_SEP, | |
'darwin': POSIX_SEP, | |
'freebsd': POSIX_SEP, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const {inspect} = require('util') | |
const DEFAULT = { | |
defaultValue: undefined, | |
dictionary: undefined, | |
value: undefined | |
} | |
function EnumFlag (enumFlag) { | |
const index = getDictionaryIndex(enumFlag.dictionary) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const nodeNotifier = require('node-notifier') | |
const supportsColor = require('supports-color') | |
const { | |
inspect, | |
format | |
} = require('util') | |
const DEFAULT = { | |
colors: !!supportsColor, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** Usage */ | |
const Accessor = require('./accessor') | |
const obj = {} | |
Accessor.in(obj).under('options') | |
.add('foo.bar', () => 'fallback foobar') | |
//.add('what.you.need', () => 'fallback value') | |
// { defaultFooBar: [Function: value], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"numero": 1, | |
"type": "invocation", | |
"nom": "Joueur Du Grenier", | |
"famille": "humain", | |
"illustration": null, | |
"description": "Une carte originale", | |
"descriptionDetaillee": "Saviez-vous que cette chemise a été achetée dans un magasin et que du coup cette carte n'a aucun effet spécial ?", | |
"attaque": 3, |