Fly again, with Dream.
Deploy npm version to your project
shell npmijsfast

FastjsDate

Can't be simpler. Easy like a pie.
1
2
3
4
5
6
7
8
9
10
11
12
import { date } from "jsfast";
console.log(date.string("Y-M-D h:m:s"));
console.log(date.string("D/M/Y h:m:s A"));
console.log(date.string("<Now time: >Y-M-D H:m:s.S a"));
// More functions
console.log(date.parse("Y-M-D h:m:s", "2022-10-21 19:20:46")); // { date, format, dateString, timestamp, utcDateString, utcTimestamp }
console.log(date.parseDate("Y-M-D h:m:s", new Date(...))); // { date, format, dateString, timestamp, utcDateString, utcTimestamp }
console.log(date.parseTimestamp("Y-M-D h:m:s", 1666351246)); // { date, format, dateString, timestamp, utcDateString, utcTimestamp }
console.log(date.reformat("2022-10-21 19:20:46", "Y-M-D h:m:s", "h:m:s Y-M-D")); // 19:20:46 2022-10-21
console.log(date.date("Y-M-D h:m:s", "2022-10-21 19:20:46")); // Date { ... }
2024-11-15 22:19:51====================

FastjsRequest

This, is Fast Request.
1
2
3
import { request } from "jsfast";
request.get("https://catfact.ninja/fact").then(data => msg(data.fact));
====================

FastjsCookie

Easy cookie, hot cookie.
1
2
3
4
5
import { cookie } from "jsfast";
cookie.set("hot-cookie", "Hello, FastJS");
console.log(cookie.get("hot-cookie")); // 'Hello, FastJS'
cookie.remove("hot-cookie"); // Eat cookie
Cookie: ====================

All Sponsors