{"_id":"mini-moment","_rev":"12-84012368760edff899aad0014c50e324","name":"mini-moment","description":"a mini datetime util","dist-tags":{"latest":"0.1.1"},"versions":{"0.0.1":{"name":"mini-moment","version":"0.0.1","description":"a datetime util","license":"MIT","repository":{"type":"git","url":"git+https://github.com/hellopao/mini-moment.git"},"author":{"name":"qinjia","email":"qinjia@outlook.com"},"engines":{"node":"*"},"main":"./dist/moment.js","keywords":["miniMoment","date","time"],"dependencies":{},"homepage":"https://github.com/hellopao/mini-moment","_id":"mini-moment@0.0.1","_from":".","devDependencies":{"babel-core":"^6.7.4","babel-loader":"^6.2.4","babel-preset-es2015":"^6.6.0","ts-loader":"^0.8.1","typescript":"^1.9.0-dev.20160324","webpack":"^1.12.14"},"gitHead":"7e30aae76f583dbd809a657a738f8b515e44e60b","bugs":{"url":"https://github.com/hellopao/mini-moment/issues"},"scripts":{},"_shasum":"020161deca00658abd9085e616656395834a2d1a","_npmVersion":"3.7.3","_nodeVersion":"5.9.0","_npmUser":{"name":"qinjia","email":"qinjia@outlook.com"},"dist":{"shasum":"020161deca00658abd9085e616656395834a2d1a","tarball":"https://registry.npmjs.org/mini-moment/-/mini-moment-0.0.1.tgz","integrity":"sha512-t/kM7IQMXuXZXpuL20MDtIQ9AWuIVBTIF+UHOrrj2WMLd1Kf9duk4EFVhJ2TapPeRtSFpRQ54Mjb80bR8A/YMA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD3qm0Ote9SZil+NjB3LIJRwqZ+LGJH9oRGkK5/o2Pg3AIhANKPgBpPZtmarNyQpKj30V5nmCtdiUBoHU5Kwzgcg0Kn"}]},"maintainers":[{"name":"qinjia","email":"qinjia@outlook.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/mini-moment-0.0.1.tgz_1459152240556_0.038524467032402754"}},"0.0.2":{"name":"mini-moment","version":"0.0.2","description":"a datetime util","license":"MIT","repository":{"type":"git","url":"git+https://github.com/hellopao/mini-moment.git"},"author":{"name":"qinjia","email":"qinjia@outlook.com"},"engines":{"node":"*"},"main":"./dist/moment.js","keywords":["miniMoment","date","time"],"dependencies":{},"homepage":"https://github.com/hellopao/mini-moment","_id":"mini-moment@0.0.2","_from":".","devDependencies":{"babel-core":"^6.7.4","babel-loader":"^6.2.4","babel-preset-es2015":"^6.6.0","ts-loader":"^0.8.1","typescript":"^1.9.0-dev.20160324","webpack":"^1.12.14"},"gitHead":"e3a65d05499f54cd8dd8773435e25ba5da0bfca8","bugs":{"url":"https://github.com/hellopao/mini-moment/issues"},"scripts":{},"_shasum":"392664f6c104e074b30b6b95f28f0c72721100b9","_npmVersion":"3.7.3","_nodeVersion":"5.9.0","_npmUser":{"name":"qinjia","email":"qinjia@outlook.com"},"dist":{"shasum":"392664f6c104e074b30b6b95f28f0c72721100b9","tarball":"https://registry.npmjs.org/mini-moment/-/mini-moment-0.0.2.tgz","integrity":"sha512-5vOo9tu71s8/wJPmsZPwiCt5zy8l+TidODERqjSnUuJ/mUIm58E71Zgz8bycJO5Gd5Fg+pCxXugpRu069vfkyQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIB9x7dBeXRrvgV02JfaCpKqOF/3JUwGXC5RKas0DiOZVAiAlj5fN2hWVyvgoS44ryRgYEPFozgZwcbtPb2X9u7kPjg=="}]},"maintainers":[{"name":"qinjia","email":"qinjia@outlook.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/mini-moment-0.0.2.tgz_1459152472202_0.4871484241448343"}},"0.0.3":{"name":"mini-moment","version":"0.0.3","description":"a datetime util","license":"MIT","repository":{"type":"git","url":"git+https://github.com/hellopao/mini-moment.git"},"author":{"name":"qinjia","email":"qinjia@outlook.com"},"engines":{"node":"*"},"main":"./dist/moment.js","keywords":["miniMoment","date","time"],"scripts":{"coverage":"nyc npm test && nyc report","test":"ava test/moment.js -tap"},"dependencies":{},"homepage":"https://github.com/hellopao/mini-moment","_id":"mini-moment@0.0.3","_from":".","devDependencies":{"ava":"^0.13.0","babel-core":"^6.7.4","babel-loader":"^6.2.4","babel-preset-es2015":"^6.6.0","nyc":"^6.1.1","ts-loader":"^0.8.1","typescript":"^1.9.0-dev.20160324","webpack":"^1.12.14"},"gitHead":"313b7fd9139c0f79e31438476c93d1dadd88487e","bugs":{"url":"https://github.com/hellopao/mini-moment/issues"},"_shasum":"a67116beec358d636b27439bb15cab5ec3945e51","_npmVersion":"2.14.20","_nodeVersion":"4.4.1","_npmUser":{"name":"qinjia","email":"qinjia@outlook.com"},"dist":{"shasum":"a67116beec358d636b27439bb15cab5ec3945e51","tarball":"https://registry.npmjs.org/mini-moment/-/mini-moment-0.0.3.tgz","integrity":"sha512-czzNosff/FqjP0TSsks8RPP8CdNCBw2hqiFHIB9cQCGxaQ2XtjRMedvVszlS8Us0BdlBKK+uyXaDd7JPWig9wA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCG3RnUx1m51FTuqgju3OEEQG+qV8kEIilKwtMfQ4vR2AIgDk6KnpszUfQ3aj3Rn1RwypWJ50xnmtew/MqmTeJb+3o="}]},"maintainers":[{"name":"qinjia","email":"qinjia@outlook.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/mini-moment-0.0.3.tgz_1459326770680_0.37659128848463297"}},"0.0.4":{"name":"mini-moment","version":"0.0.4","description":"a datetime util","license":"MIT","repository":{"type":"git","url":"git+https://github.com/hellopao/mini-moment.git"},"author":{"name":"qinjia","email":"qinjia@outlook.com"},"engines":{"node":"*"},"main":"./dist/moment.js","keywords":["miniMoment","date","time"],"scripts":{"coverage":"nyc npm test && nyc report","test":"ava test/moment.js -tap"},"dependencies":{},"homepage":"https://github.com/hellopao/mini-moment","_id":"mini-moment@0.0.4","_from":".","devDependencies":{"ava":"^0.13.0","babel-core":"^6.7.4","babel-loader":"^6.2.4","babel-preset-es2015":"^6.6.0","nyc":"^6.1.1","ts-loader":"^0.8.1","typescript":"^1.9.0-dev.20160324","webpack":"^1.12.14"},"gitHead":"313b7fd9139c0f79e31438476c93d1dadd88487e","bugs":{"url":"https://github.com/hellopao/mini-moment/issues"},"_shasum":"278d94c324d118f85504203598e76bceab905c38","_npmVersion":"2.14.20","_nodeVersion":"4.4.1","_npmUser":{"name":"qinjia","email":"qinjia@outlook.com"},"dist":{"shasum":"278d94c324d118f85504203598e76bceab905c38","tarball":"https://registry.npmjs.org/mini-moment/-/mini-moment-0.0.4.tgz","integrity":"sha512-dg2yOKmx3DqULQGUr4sigsy5RubKlD2n1xii5csqjdUAsSyfff4BpinPzy+crdn/g/zUMiLVSe3MrNOQXiXMPw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGxrGUBZek78hUo+ER4SQ2dfeSfU2E7tdKTyhYAdLjtbAiEAmX9GPoJc6WnBnvdjobnTUO81LlcirPqrLlffEMAtMkg="}]},"maintainers":[{"name":"qinjia","email":"qinjia@outlook.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/mini-moment-0.0.4.tgz_1459327031310_0.7431336615700275"}},"0.0.5":{"name":"mini-moment","version":"0.0.5","description":"a datetime util","license":"MIT","repository":{"type":"git","url":"git+https://github.com/hellopao/mini-moment.git"},"author":{"name":"qinjia","email":"qinjia@outlook.com"},"engines":{"node":"*"},"main":"./dist/moment.js","keywords":["miniMoment","date","time"],"scripts":{"coverage":"nyc npm test && nyc report","test":"ava test/moment.js -tap"},"dependencies":{"pad-left":"^2.0.3"},"homepage":"https://github.com/hellopao/mini-moment","_id":"mini-moment@0.0.5","_from":".","devDependencies":{"ava":"^0.13.0","babel-core":"^6.7.4","babel-loader":"^6.2.4","babel-preset-es2015":"^6.6.0","nyc":"^6.1.1","ts-loader":"^0.8.1","typescript":"^1.9.0-dev.20160324","webpack":"^1.12.14"},"gitHead":"a3f44d3fb303c93fa85c1b56823fd76d258e8f0d","bugs":{"url":"https://github.com/hellopao/mini-moment/issues"},"_shasum":"1a88a0c8177494a16985fabd83f2355bd262396c","_npmVersion":"3.8.3","_nodeVersion":"5.10.0","_npmUser":{"name":"qinjia","email":"qinjia@outlook.com"},"dist":{"shasum":"1a88a0c8177494a16985fabd83f2355bd262396c","tarball":"https://registry.npmjs.org/mini-moment/-/mini-moment-0.0.5.tgz","integrity":"sha512-r/GjnqSbtMufCxsPCybODJMxGxpfJhutEXd94UiolBNoRbSMRj1SS643GTkEpoHb0TgGP/k5541BsOm8wWdAfw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDDzHESt6txuKG2hiO1mhEucOnQVBDi4+k712TwR+VpDgIhAOtAXff8UZiHfLH9d6Oqa4QfFgw2B11FxOk3Rb6qVp0D"}]},"maintainers":[{"name":"qinjia","email":"qinjia@outlook.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/mini-moment-0.0.5.tgz_1460685303645_0.33098973659798503"}},"0.0.6":{"name":"mini-moment","version":"0.0.6","description":"a datetime util","license":"MIT","repository":{"type":"git","url":"git+https://github.com/hellopao/mini-moment.git"},"author":{"name":"qinjia","email":"qinjia@outlook.com"},"engines":{"node":"*"},"main":"./dist/moment.js","keywords":["miniMoment","date","time"],"scripts":{"coverage":"nyc npm test && nyc report","test":"ava test/moment.js -tap"},"dependencies":{"pad-left":"^2.0.3"},"homepage":"https://github.com/hellopao/mini-moment","_id":"mini-moment@0.0.6","_from":".","devDependencies":{"ava":"^0.13.0","babel-core":"^6.7.4","babel-loader":"^6.2.4","babel-preset-es2015":"^6.6.0","nyc":"^6.1.1","ts-loader":"^0.8.1","typescript":"^1.9.0-dev.20160324","webpack":"^1.12.14"},"gitHead":"bb5e70cbafcbca1f52b0a68b2fea6aba91f1c95f","bugs":{"url":"https://github.com/hellopao/mini-moment/issues"},"_shasum":"eec3617fdb95b113979525cbec0ed900f39bd429","_npmVersion":"3.8.3","_nodeVersion":"5.10.0","_npmUser":{"name":"qinjia","email":"qinjia@outlook.com"},"dist":{"shasum":"eec3617fdb95b113979525cbec0ed900f39bd429","tarball":"https://registry.npmjs.org/mini-moment/-/mini-moment-0.0.6.tgz","integrity":"sha512-2dkC9NYKWFCqK8yv59hYjAeTFmq2ad22RlyH+FXaPjMjgpf6SRphXZocS8V9kLe34VJ2l1ErR472iwXpKPazlQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFyy5UG45iCWqxiJVvqXAyevxfYbOR3ecfGkEo/LDDf/AiAKsTuYy0wh7oVPSuixn6oac+JnSSu+MUGgBUvqbynZZQ=="}]},"maintainers":[{"name":"qinjia","email":"qinjia@outlook.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/mini-moment-0.0.6.tgz_1460971951211_0.6074411065783352"}},"0.0.7":{"name":"mini-moment","version":"0.0.7","description":"a datetime util","license":"MIT","repository":{"type":"git","url":"git+https://github.com/hellopao/mini-moment.git"},"author":{"name":"qinjia","email":"qinjia@outlook.com"},"engines":{"node":"*"},"main":"./dist/moment.js","keywords":["miniMoment","date","time"],"scripts":{"coverage":"nyc npm test && nyc report","test":"ava test/moment.js -tap"},"dependencies":{"pad-left":"^2.0.3"},"homepage":"https://github.com/hellopao/mini-moment","_id":"mini-moment@0.0.7","_from":".","devDependencies":{"ava":"^0.13.0","babel-core":"^6.7.4","babel-loader":"^6.2.4","babel-preset-es2015":"^6.6.0","nyc":"^6.1.1","ts-loader":"^0.8.1","typescript":"^1.9.0-dev.20160324","webpack":"^1.12.14"},"gitHead":"21c5c8d347c9dfcd2ab9653f6c82f79822eac999","bugs":{"url":"https://github.com/hellopao/mini-moment/issues"},"_shasum":"04f09782b78bfe7d32dcacb37fd255d57bec294b","_npmVersion":"3.8.3","_nodeVersion":"5.10.0","_npmUser":{"name":"qinjia","email":"qinjia@outlook.com"},"dist":{"shasum":"04f09782b78bfe7d32dcacb37fd255d57bec294b","tarball":"https://registry.npmjs.org/mini-moment/-/mini-moment-0.0.7.tgz","integrity":"sha512-Gp79QAPFNjSdRJlZSM5eCkv8Pm9gSx6datk3i73slmYmOfdehderFsqX1OW3mvFATRgfb1NUJzG1iD6c3jt1pw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFtUz0YRjaOHFn6KazTo44Cu9la8ciP+Eb1HCffiQ7gKAiBi7eqGLgrAb9A24Mzc4KoeoaTJ+M1AC//Ri25vgsQH9w=="}]},"maintainers":[{"name":"qinjia","email":"qinjia@outlook.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/mini-moment-0.0.7.tgz_1460975113106_0.0506311624776572"}},"0.0.9":{"name":"mini-moment","version":"0.0.9","description":"a datetime util","license":"MIT","repository":{"type":"git","url":"git+https://github.com/hellopao/mini-moment.git"},"author":{"name":"qinjia","email":"qinjia@outlook.com"},"engines":{"node":"*"},"main":"./dist/moment.js","keywords":["miniMoment","date","time"],"scripts":{"coverage":"nyc npm test && nyc report","test":"ava test/moment.js -tap"},"dependencies":{"pad-left":"^2.0.3"},"homepage":"https://github.com/hellopao/mini-moment","_id":"mini-moment@0.0.9","_from":".","devDependencies":{"ava":"^0.13.0","babel-core":"^6.7.4","babel-loader":"^6.2.4","babel-preset-es2015":"^6.6.0","nyc":"^6.1.1","ts-loader":"^0.8.1","typescript":"^1.9.0-dev.20160324","webpack":"^1.12.14"},"gitHead":"f08a1c0011eb141807b44ddbc028edf04b09f05b","bugs":{"url":"https://github.com/hellopao/mini-moment/issues"},"_shasum":"28a0190ad9b4dcfb9e4cc623d0f04ba1a8292446","_npmVersion":"3.8.3","_nodeVersion":"5.10.0","_npmUser":{"name":"qinjia","email":"qinjia@outlook.com"},"dist":{"shasum":"28a0190ad9b4dcfb9e4cc623d0f04ba1a8292446","tarball":"https://registry.npmjs.org/mini-moment/-/mini-moment-0.0.9.tgz","integrity":"sha512-3ZvGxztu99QjfOGoFIhiOZ4VHghlnuEau4VojTWZ/a6v/Mh7h61DzV7AkpX42Tvh3Aoo9e/ALutX9ezSc6QP6Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC3bgTL3hc7thy0nBN3tHdT2tCzl9XJBoqQcrk8iWKQoQIgP8eJ+DMXZ++wwBfU5QckViVgR/XOT6bXxvpn2ugmb8Q="}]},"maintainers":[{"name":"qinjia","email":"qinjia@outlook.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/mini-moment-0.0.9.tgz_1461320313771_0.686612436780706"}},"0.1.0":{"name":"mini-moment","version":"0.1.0","description":"a mini datetime util","license":"MIT","repository":{"type":"git","url":"git+https://github.com/hellopao/mini-moment.git"},"author":{"name":"qinjia","email":"qinjia@outlook.com"},"engines":{"node":"*"},"main":"./dist/moment.js","keywords":["mini-moment","date","moment","time"],"scripts":{"coverage":"nyc npm test && nyc report","test":"ava test/moment.js -tap"},"dependencies":{},"homepage":"https://github.com/hellopao/mini-moment","devDependencies":{"pad-left":"^2.0.3","ava":"^0.13.0","babel-core":"^6.7.4","babel-loader":"^6.2.4","babel-preset-es2015":"^6.6.0","nyc":"^6.1.1","ts-loader":"^0.8.1","typescript":"^1.9.0-dev.20160324","webpack":"^1.12.14"},"gitHead":"3e9312c4b03f168abe9c5cd35e79f4d46ca9fbeb","bugs":{"url":"https://github.com/hellopao/mini-moment/issues"},"_id":"mini-moment@0.1.0","_shasum":"e9c724a5946a582b437cc1c518e5fd718ca0afaf","_from":".","_npmVersion":"3.8.3","_nodeVersion":"5.10.0","_npmUser":{"name":"qinjia","email":"qinjia@outlook.com"},"dist":{"shasum":"e9c724a5946a582b437cc1c518e5fd718ca0afaf","tarball":"https://registry.npmjs.org/mini-moment/-/mini-moment-0.1.0.tgz","integrity":"sha512-YfogBwZE894qu0JHBNToJ/c6dMgviB5aMqpMSxcDq7Q0qUFKo9nwqeYwtEaqI15a+jdDJi4OF1KIOM+ZrN52ng==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFhE9DOxwZMGlFOA/nd5kR8pJfGkRMnsnesDs5SVOFPUAiBp8fZvwHLZuSA02LGS97C2hiyIERbYlib4C2UgZPkRIw=="}]},"maintainers":[{"name":"qinjia","email":"qinjia@outlook.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/mini-moment-0.1.0.tgz_1462763413414_0.8698302141856402"}},"0.1.1":{"name":"mini-moment","version":"0.1.1","description":"a mini datetime util","license":"MIT","repository":{"type":"git","url":"git+https://github.com/hellopao/mini-moment.git"},"author":{"name":"qinjia","email":"qinjia@outlook.com"},"engines":{"node":"*"},"main":"./dist/moment.js","keywords":["mini-moment","date","moment","time"],"scripts":{"coverage":"nyc npm test && nyc report","test":"ava test/moment.js -tap"},"dependencies":{},"homepage":"https://github.com/hellopao/mini-moment","devDependencies":{"pad-left":"^2.0.3","ava":"^0.13.0","babel-core":"^6.7.4","babel-loader":"^6.2.4","babel-preset-es2015":"^6.6.0","nyc":"^6.1.1","ts-loader":"^0.8.1","typescript":"^1.9.0-dev.20160324","webpack":"^1.12.14"},"gitHead":"45e100071ae75ac599158c805d101dd57c92208c","bugs":{"url":"https://github.com/hellopao/mini-moment/issues"},"_id":"mini-moment@0.1.1","_shasum":"1ccadd4f8914ad94c251a04b34d3f0750742a00e","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.1","_npmUser":{"name":"qinjia","email":"qinjia@outlook.com"},"dist":{"shasum":"1ccadd4f8914ad94c251a04b34d3f0750742a00e","tarball":"https://registry.npmjs.org/mini-moment/-/mini-moment-0.1.1.tgz","integrity":"sha512-Alv+eNBx5cGXk8h+rMovdPQf588UZ6FdMeLgjqhMrmnVoc34Ld9gwUo+CbYExkJNR1YrRfFxQPa6lr9aYwTtsg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDZdSmIu7MXepFm5aFyxOK3fzIlSqBFTvjG/9wseVjw9wIgPMzGsLo2RZ4MF6eSPk5j+yyRdC7hesxEBExkLo+wjpA="}]},"maintainers":[{"name":"qinjia","email":"qinjia@outlook.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/mini-moment-0.1.1.tgz_1471249601877_0.661878895945847"}}},"readme":"# mini-moment\r\n\r\na mini datetime util\r\n\r\n## usage\r\n\r\n### Node.js\r\n\r\n```bash\r\nnpm install mini-moment\r\n```\r\n```javascript\r\nconst Moment = require('mini-moment');\r\nconst dateStr = new Moment().format();\r\n```\r\n\r\n### Browser\r\n\r\n```html\r\n<script src=\"mini-moment.js\"></script>\r\n<script>\r\n    var dateStr = new Moment().format();\r\n</script>\r\n```\r\n\r\n### Require.js\r\n\r\n```javascript\r\nrequire.config({\r\n    paths: {\r\n        \"Moment\": \"path/to/mini-moment\",\r\n    }\r\n});\r\ndefine([\"Moment\"], function (Moment) {\r\n    var dateStr = new Moment().format();\r\n});\r\n```\r\n\r\n## API\r\n\r\n- date - Date - Date instance of the original moment\r\n\r\n- isToday() - boolean- compare the original moment to today;\r\n\r\n- set(type: \"year\" | \"month\" | \"date\" | \"hour\" | \"second\" | \"minute\" | \"week\", value: number) - Moment -Mutates the original moment by setting it to a unit of the incoming time\r\n\r\n- next(type: \"year\" | \"month\" | \"date\" | \"hour\" | \"second\" | \"minute\" | \"week\", delta?: number) - Moment -Mutates the original moment by adding time;\r\n\r\n- prev(type: \"year\" | \"month\" | \"date\" | \"hour\" | \"second\" | \"minute\" | \"week\", delta?: number) - Moment - Mutates the original moment by subtracting time;\r\n\r\n- get(type: \"year\" | \"month\" | \"date\" | \"hour\" | \"second\" | \"minute\" | \"day\" | \"millisecond\") - string - get time unit of the original moment\r\n\r\n- format(formats?: string) - string - format the original moment with format string;\r\n\r\n- fromNow() - string - get the duration string between the original moment and the current time;\r\n\r\n- countDays() - number - get the day count in the month of the original moment\r\n\r\n- startOf(type: \"year\" | \"season\" | \"month\" | \"date\" | \"hour\" | \"minute\" | \"week\") - Moment - Mutates the original moment by setting it to the start of a unit of time\r\n\r\n## example\r\n\r\n```javascript\r\nconst Moment = require('mini-moment');\r\n\r\nconst year = new Moment().get('year');\r\nconst month = Moment.get('month',new Date());\r\n\r\nconst timestamp = new Moment().set('date',1).date.getTime();\r\n\r\nconst format = new Moment('2016/03/30').format();\r\nconst format2 = Moment.format('2016/03/30');\r\n\r\nconst duration =  new Moment().prev('hour').fromNow();\r\n\r\nconst start = new Moment('2016/3/30').startOf('month').format();\r\n\r\nconst days = new Moment('2016/02/01').countDays();\r\nconst days2 = Moment.countDays('2016/02/01');\r\n\r\nconst next = new Moment('2016/03/30').next('date').format();\r\n\r\nconst prev = new Moment('2016/03/30').prev('date').format();\r\n\r\nconst isToday = new Moment(now).isToday();\r\nconst isToday2 = Moment.isToday(now);\r\n\r\nconst isValid = Moment.isValid('dsfwerwerwe');\r\n```","maintainers":[{"name":"qinjia","email":"qinjia@outlook.com"}],"time":{"modified":"2022-06-19T20:52:25.475Z","created":"2016-03-28T08:04:02.884Z","0.0.1":"2016-03-28T08:04:02.884Z","0.0.2":"2016-03-28T08:07:54.706Z","0.0.3":"2016-03-30T08:32:51.190Z","0.0.4":"2016-03-30T08:37:13.631Z","0.0.5":"2016-04-15T01:55:04.222Z","0.0.6":"2016-04-18T09:32:33.379Z","0.0.7":"2016-04-18T10:25:15.526Z","0.0.9":"2016-04-22T10:18:35.493Z","0.1.0":"2016-05-09T03:10:16.132Z","0.1.1":"2016-08-15T08:26:43.504Z"},"homepage":"https://github.com/hellopao/mini-moment","keywords":["mini-moment","date","moment","time"],"repository":{"type":"git","url":"git+https://github.com/hellopao/mini-moment.git"},"author":{"name":"qinjia","email":"qinjia@outlook.com"},"bugs":{"url":"https://github.com/hellopao/mini-moment/issues"},"license":"MIT","readmeFilename":"README.md"}