2.0.0 โ€ข Published 1 year ago

cotd v2.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

cotd

language ide

๐ŸŽง Demo

๐Ÿš€ The typing animation:

demo

// Using CommonJS
require('cotd');

(async () => {
    await console.typing('Hello World');
})();

// Using ES6 Module
import 'cotd';
await console.typing('Hello World');

๐Ÿงจ The deleting animation:

demo

// 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.

1.1.0

1 year ago

2.0.0

1 year ago

1.0.0

1 year ago