@spany/atlas.js
v0.4.4
Published
A module that has multiple functions and will make your work easier.
Downloads
70
Maintainers
Readme
What does this module do?
- You can easily use and benefit from many functions in this module.
- This module provides you with convenience.
What's new in 0.4.4?
- Bug Fixed
🔧 Installation
- You can download
@spany/atlas.js
in powershell with this code.
npm install @spany/atlas.js
🧱 Basic Usage
Add the following "checkUpdate" function to your bot to be notified instantly about the innovations in the module.
Features
const Atlas = require('@spany/atlas.js');
(async () => {
try {
// Example: isValidHexColor
console.log(Atlas.isValidHexColor("#fbb11b")); // True
console.log(Atlas.isValidHexColor("123456")); // False
// Example: isImageUrl
console.log(Atlas.isImageUrl("ImageUrl")); // True
console.log(Atlas.isImageUrl("Hi!")); // False
const imageUrl = Atlas.isImageUrl("ImageUrl");
console.log(imageUrl); // True or False
// Example: Depremler/Earthquake
const depremler = await Atlas.sonDepremler(3);
console.log(depremler);
// Example: tdk
const kelime = 'örnek'; // kelime değişkenine uygun bir değer atayın
const tdk = await Atlas.tdk(kelime);
console.log(tdk);
} catch (error) {
console.error('Error:', error);
}
})();