Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
$ npm install tease
This library provides basic time zone information with UTC and DST offsets and canonical links from the IANA Time Zone Database. It can be installed in whichever way you prefer, but I recommend NPM.
var tease = require('tease');
tease.all();
// {
// "Europe/London": {"utc":"+00:00", "dst":"+01:00", "link":null},
// "US/Eastern": {"utc":"-05:00", "dst":"-04:00", "link":"America/New_York"},
// "UTC": {"utc":"+00:00", "dst":"+00:00", "link":null},
// ...
// }
tease.ids();
// [
// "Europe/London",
// "US/Eastern",
// "UTC",
// ...
// ]
tease.get('US/Eastern');
// {"utc":"-05:00", "dst":"-04:00", "link":"America/New_York"}
tease.get('US/Eastern', /*canonical*/ true) === tease.get('America/New_York');
// true
tease.utc('US/Eastern');
// "-05:00"
tease.dst('US/Eastern');
// "-04:00"
tease.has('US/Eastern');
// true
tease.has('Planet/Mars');
// false
I accept contributions to the source via Pull Request, but passing unit tests must be included before it will be considered for merge.
$ curl -O https://raw.githubusercontent.com/adlawson/vagrantfiles/master/nodejs/Vagrantfile
$ vagrant up
$ vagrant ssh
$ cd /srv
$ npm test
The content of this library is released under the MIT License by
Andrew Lawson.
You can find a copy of this license in
LICENSE
or at http://www.opensource.org/licenses/mit.
FAQs
Time zones with offsets and canonical links from the IANA Time Zone Database
We found that tease demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.