login/node_modules/jest-util/build/clearLine.js
Balaga Gayatri 74dd83c7c8 node_modules
2021-10-22 12:50:18 +05:30

18 lines
414 B
JavaScript

'use strict';
Object.defineProperty(exports, '__esModule', {
value: true
});
exports.default = clearLine;
/**
* Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
function clearLine(stream) {
if (stream.isTTY) {
stream.write('\x1b[999D\x1b[K');
}
}