Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@twreporter/core

Package Overview
Dependencies
Maintainers
5
Versions
131
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@twreporter/core - npm Package Compare versions

Comparing version 1.0.0-beta.1 to 1.0.0

12

lib/utils/date.js

@@ -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;

11

package.json
{
"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
```
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc