🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

reason-luxon

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

reason-luxon

bucklescript bindings for luxon

latest
Source
npmnpm
Version
0.6.0
Version published
Weekly downloads
6
Maintainers
1
Weekly downloads
 
Created
Source

reason-luxon

BuckleScript bindings to Luxon

Installation

npm install reason-luxon luxon --save

Then add reason-luxon to bs-dependencies in bsconfig.json

{  
  "bs-dependencies": [    
    "reason-luxon"
  ],
}

Usage

open Luxon

let start = DateTime.(
  local()
  ->setZone(Zone.IANA.create("America/New_York"))
  ->minus(Duration.make(~weeks=1., ()))
  ->endOf(`day)  
);

let end_ = start->DateTime.plus(Duration.make(~weeks=1.0, ()))

Interval.fromDateTimes(start, end_)
->Interval.toString

Documentation

Each .rei file contains a link to the relevant Luxon documentation:

Contributing / Status

The following Luxon APIs are not complete, either due to the Luxons docs being a little lacking, the binding being a little tricky or the current binding is missing some options which the Luxon API would accept.

Pull requests are very much appreciated:

Keywords

binding

FAQs

Package last updated on 26 Apr 2020

Did you know?

Socket

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.

Install

Related posts