New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

andri

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

andri - npm Package Compare versions

Comparing version 3.2.0 to 4.0.0

13

bin/index.js

@@ -5,15 +5,4 @@ #!/usr/bin/env node

const path = require("path");
const moment = require("./moment.min")
const momentTZ = require("./moment-timezone.min")
const hydrateTime = str => str.replace(/tz\(([^}]+)\)/g, (a, match) => {
const result = momentTZ().tz(match).format('LT z').toLowerCase()
const diff = match.length - result.length + 4
const spaces = (new Array(diff)).fill(' ').join('')
return result + spaces
});
const output = fs.readFileSync(path.join(__dirname, 'output'), 'utf8');
const timeEvalOutput = hydrateTime(output)
console.log(timeEvalOutput);
console.log(output);

6

package.json
{
"name": "andri",
"version": "3.2.0",
"version": "4.0.0",
"description": "Personal npm card for Andri Alexandrou (@_alexandrou)",

@@ -59,3 +59,3 @@ "main": "src/card.js",

"pronouns": "she/her",
"timezone": "tz(Europe/Athens)"
"timezone": "UTC+2"
},

@@ -75,3 +75,3 @@ "data": [

{
"label": "<cyan>time</>",
"label": "<cyan>zone</>",
"text": "<cyan>{{timezone}}</>",

@@ -78,0 +78,0 @@ "when": "{{timezone}}"

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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