프로젝트
GitHub에서 보기
JerrySievert/date-utils
소개
Node.js와 브라우저용 날짜 폴리필
기타 프로젝트측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalDate-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
<script type="text/javascript" src="date-utils.min.js"></script>
Using with Node.js
$ npm install date-utils
require('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 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
관련 프로젝트 살펴보기
불러오는 중…