@twreporter/core
Advanced tools
Comparing version 1.0.0-beta.1 to 1.0.0
@@ -8,4 +8,12 @@ "use strict"; | ||
function date2yyyymmdd(time, separator) { | ||
var date = new Date(time); | ||
/** | ||
* | ||
* @export | ||
* @param {number} timestampInMs - UNIX timestamp in mileseconds | ||
* @param {string} separator - return string will be like 2019{separator}1{separator}31 | ||
* @returns | ||
*/ | ||
function date2yyyymmdd(timestampInMs) { | ||
var separator = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '.'; | ||
var date = new Date(timestampInMs); | ||
var year = date.getFullYear(); | ||
@@ -12,0 +20,0 @@ var mon = date.getMonth() + 1; |
{ | ||
"name": "@twreporter/core", | ||
"version": "1.0.0-beta.1", | ||
"version": "1.0.0", | ||
"main": "lib/index.js", | ||
@@ -12,10 +12,9 @@ "repository": "https://github.com/twreporter/twreporter-npm-packages.git", | ||
}, | ||
"peerDependencies": { | ||
"dependencies": { | ||
"lodash": "^4.0.0", | ||
"styled-components": "^4.0.0" | ||
}, | ||
"devDependencies": { | ||
"lodash": "^4.0.0", | ||
"styled-components": "^4.0.0" | ||
} | ||
"files": [ | ||
"lib" | ||
] | ||
} |
# @twreporter/core | ||
[![NPM version](https://img.shields.io/npm/v/@twreporter/core.svg)](https://www.npmjs.com/package/@twreporter/core) | ||
This package provides the constants and utilities used in the [The Reporter](https://www.twreporter.org/) website. | ||
## Developement | ||
### Dev | ||
```bash | ||
make dev | ||
``` | ||
### Build (pre-publish) | ||
```bash | ||
make build | ||
``` | ||
### Publish | ||
```bash | ||
make publish | ||
``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
17531
0
436
1
26
+ Addedlodash@^4.0.0
+ Addedstyled-components@^4.0.0
+ Addedbrowserslist@4.24.4(transitive)
+ Addedcaniuse-lite@1.0.30001692(transitive)
+ Addedelectron-to-chromium@1.5.80(transitive)
+ Addedupdate-browserslist-db@1.1.2(transitive)
- Removedbrowserslist@4.24.3(transitive)
- Removedcaniuse-lite@1.0.30001690(transitive)
- Removedelectron-to-chromium@1.5.77(transitive)
- Removedupdate-browserslist-db@1.1.1(transitive)