This commit is contained in:
Daniel Legt 2022-05-07 14:35:15 +03:00
parent 04dc772e05
commit afe37e1f78
2 changed files with 18 additions and 3 deletions

View File

@ -1,11 +1,11 @@
{
"name": "tymejs",
"version": "0.2.4",
"version": "0.3.0",
"description": "Quickly and easily format JavaScript date Objects",
"main": "dist/index.js",
"scripts": {
"build": "esbuild src/index.ts --bundle --minify --sourcemap --target=chrome58,firefox57,safari11,edge16 --outfile=dist/tyme.js",
"test": "tsc"
"test": "ts-node ./src/tests/fullTest.ts"
},
"keywords": [
"time",
@ -17,5 +17,8 @@
"license": "MIT",
"repository": {
"url": "https://github.com/JustKato/Tyme.js"
},
"dependencies": {
"ts-node": "^10.7.0"
}
}

View File

@ -2,8 +2,20 @@ import TymeJS from "..";
const a = new TymeJS();
console.log("🌍", a.format("m/d/Y"));
console.log(a.format("d/m/Y"));
console.log(a.format("d/m/Y h:i A"));
console.log(a.format("d/m/Y H:i:s"));
console.log("\n🇺🇸\n", a.format("m/d/Y"));
console.log(a.format("m/d/Y"));
console.log(a.format("m/d/Y h:i A"));
console.log(a.format("m/d/Y H:i:s"));
console.log("\n🖥\n", a.format("m/d/Y"));
console.log(a.format("Y-m-d"));
console.log(a.format("Y-m-d H:i:s"));
console.log(`\n`);