nl_tokens: Awaitable wrapper around child_process . exec Executes a command and return its result wrapped in a Promise .
pl_tokens: function ( cmd ) { return new Promise ( ( resolve , reject ) => { child_process . exec ( cmd , ( err , stdout , stderr ) => { if ( err ) { reject ( <mask> ) ; } if ( stderr ) { reject ( new Error ( stderr ) ) ; } resolve ( stdout ) ; } ) ; } ) ; }