Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/JerrySievert/date-utils
Date Pollyfills for Node.js and Browser
https://github.com/JerrySievert/date-utils
Last synced: 3 months ago
JSON representation
Date Pollyfills for Node.js and Browser
- Host: GitHub
- URL: https://github.com/JerrySievert/date-utils
- Owner: JerrySievert
- License: mit
- Created: 2011-01-08T19:02:04.000Z (about 14 years ago)
- Default Branch: master
- Last Pushed: 2023-08-10T19:07:58.000Z (over 1 year ago)
- Last Synced: 2024-10-22T03:11:12.825Z (3 months ago)
- Language: JavaScript
- Homepage: https://jerrysievert.github.io/date-utils/
- Size: 478 KB
- Stars: 373
- Watchers: 14
- Forks: 60
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-frontend - date-utils - Date Pollyfills for Node.js and Browser. ![](https://img.shields.io/github/stars/JerrySievert/date-utils.svg?style=social&label=Star) (Repository / Date & Time)
- awesome-nodejs - date-utils - Date Pollyfills for Node.js and Browser. ![](https://img.shields.io/github/stars/JerrySievert/date-utils.svg?style=social&label=Star) (Repository / Date & Time)
README
# Date-Utils: Polyfills for the Date object
## NOTE
Version 2 Feature and Changes discussion is being held at https://github.com/JerrySievert/node-date-utils/issues/37
## In a nutshell
- Micro-Framework adding missing functionality to the Date object
- Useable as a polyfill in the browser
- Useable as a polyfill in Node.js
- Works in CouchDB## Using within a Browser
## Using with Node.js
$ npm install date-utilsrequire('date-utils');
Note: This did not work in the `REPL` before `Node.js 0.6` due to how `Node.js` handles context in the `REPL`.
## Changing Languages
require('date-utils').language("es")Supported languages:
- Spanish - "es"
- French - "fr"
- Portuguese Brazilian - "pt-BR"## Documentation
Documentation (nearing completion) can be found at https://jerrysievert.github.io/date-utils
## Development
Make sure you have [gulp](https://www.npmjs.org/package/gulp) installed (npm install gulp -g). After that hit `npm install` to get the dependencies. Finally, hit `gulp`. This will build the library initially. If you make changes to the library, it will compile the minified version automatically.
### Testing
```
$ npm test
```### Complexity and Minification
```
$ gulp
```