date-fns.org is the date-fns website. It provides information about key library features, API browser, documentation, etc.
To run the website locally, use:
yarn
yarn start
The website will be available on http://localhost:1337/
π‘ date-fns website π
Home Page: https://date-fns.org
License: MIT License
date-fns.org is the date-fns website. It provides information about key library features, API browser, documentation, etc.
To run the website locally, use:
yarn
yarn start
The website will be available on http://localhost:1337/
Prepare site to be deployed to Firebase
date-fns now supports SystemJS
@example
@example
@example
of the first entry is shown instead of @example
of the second@example
to reset shown exampleTwo tabs:
var nameOfFunction = require('date-fns/name_of_function')
var nameOfFunction = dateFns.nameOfFunction
When navigating to a different doc page after having scrolled the current page (which is a common use case when reading the doc), the right panel keeps its scroll position after updating its content. This is very confusing because it forces to scroll up to be able to start reading the new content.
I suggest scrolling to top again when switching page.
I'm using Firefox in case this is browser-specific.
If function has no arguments, site fails to show its documentation. E.g.: endOfToday
, endOfTomorrow
, endOfYesterday
Error:
TypeError: undefined is not an object (evaluating 'args.map')
argumentsString += ']'.repeat(nesting);
doesn't work in Android Chrome 40
It will prevent glitch when user returns from a doc page to the home one.
isValidDateValues(year, month, [day=1], [hours=0], [minutes=0], [seconds=0], [milliseconds=0])
β
isValidDateValues(year, month, [day=1, [hours=0, [minutes=0, [seconds=0, [milliseconds=0]]]]])
Sometimes it's super useful to try some functions right on the date-fns.org
website. The easiest way to do this - make available dateFns
object in global scope. Every developer could just open a console of the browser, try and combine any functions.
For example, https://lodash.com/
has global _
object on their website and I often use it.
<script>
to the Bower tabWhen a header has inner tags inside, text from the inner tags won't be extracted to the header id.
like in Table of Contents here https://date-fns.org/docs/Contributing
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.