Skip to content
/ sdate Public

An NPM package which provides accurate date for data logging

License

Notifications You must be signed in to change notification settings

shujew/sdate

Repository files navigation

SDate

A JavaScript helper which synchronizes the client date with a server date (provided by realworldtime api). Can be used either in browser (client-side) or in Node.js (server-side) environment. Available as a UMD module.

How-To

Browser

<!doctype html>
<html>
<head>
<script src="sdate.min.js"></script>
<script>
    console.log(sdate.getDate());
</script>
</head>
<body>
</body>
</html>

Node.js

$ npm install sdate
const sdate = require('sdate');
console.log(sdate.getDate());

TO-DO

  • Finish documentation
  • Add 100% test coverage
  • TODOs in code

About

An NPM package which provides accurate date for data logging

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published