cotd v2.0.0
cotd
๐ง Demo
๐ The typing animation:
// Using CommonJS
require('cotd');
(async () => {
await console.typing('Hello World');
})();
// Using ES6 Module
import 'cotd';
await console.typing('Hello World');
๐งจ The deleting animation:
// Using CommonJS
require('cotd');
(async () => {
await console.deleting('Hello World');
})();
// Using ES6 Module
import 'cotd';
await console.deleting('Hello World');
๐ก Introduction
The async typing and deleting animatin in console.
๐ฆ Installation
๐ฅ Install cotd
โจ๏ธ package:
npm install cotd # Using npm
yarn add cotd # Using yarn
pnpm add cotd # Using pnpm
๐๏ธ Uninstall cotd
โจ๏ธ package:
npm uninstall cotd # Using npm
yarn remove cotd # Using yarn
pnpm remove cotd # Using pnpm
๐ Usage
โ Import cotd
โจ๏ธ package:
require('cotd'); // Using CommonJS
import 'cotd'; // Using ES6 Module
๐จ Use console.typing()
in the source code:
await console.typing(
'Hello World', // Anything you wanna make it be typing in console
375 // Typing speed. Unit: Millisecond (ms)
);
๐ Use console.deleting()
in the source code:
await console.deleting(
'Hello World', // Anything you wanna make it be deleting in console
250 // Deleting speed. Unit: Millisecond (ms)
);
โ License
Copyright (c) 2023 uynilo9
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.