Socket
Socket
Sign inDemoInstall

fenris-date-tool

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fenris-date-tool - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

2

package.json
{
"name": "fenris-date-tool",
"version": "0.0.2",
"version": "0.0.3",
"description": "Date utility to make dates suck less when they aren't saved in UTC",

@@ -5,0 +5,0 @@ "authors": [

# fenris-date-tool
Date tool to convert to and from Locale times to UTC
# General usage
Currently only works with Danish time.
```JavaScript
import { FDTLocaleToUtc } from 'fenris-date-tool';
export const example = (inputDate: string): string => {
const utcDateString: string = FDTLocaleToUtc(item.DateTime, 'Europe/Copenhagen');
return utcDateString
};
```
# How to publish
```Console

@@ -20,8 +28,11 @@ npm run clean

# How it was build
This is created and maintained with with rollup, typedocs (in theory), @microsoft/api-extractor
# How it was build
This is created and maintained with with rollup, typedocs (in theory), @microsoft/api-extractor
start:
```Console

@@ -41,2 +52,3 @@ npm install --save-dev \

The scripts setup should look like:
```JSON

@@ -56,2 +68,3 @@ "scripts": {

The rollup config should looklike
```JavaScript

@@ -79,2 +92,3 @@ import { nodeResolve } from '@rollup/plugin-node-resolve';

The TSconfig should look like:
```JSON

@@ -95,2 +109,2 @@ {

}
```
```
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