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

@transloadit/format-duration-ms

Package Overview
Dependencies
Maintainers
0
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@transloadit/format-duration-ms - npm Package Compare versions

Comparing version 0.4.3 to 1.0.0

3

dist/formatDurationMs.d.ts

@@ -1,2 +0,1 @@

declare const _default: (ms: number) => string;
export = _default;
export declare function formatDurationMs(ms: number): string;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.formatDurationMs = formatDurationMs;
const prettyMS = require("pretty-ms");
module.exports = function formatDurationMs(ms) {
function formatDurationMs(ms) {
let human = prettyMS(ms);

@@ -8,3 +10,3 @@ human = human.replace(/(\d+)\.\d+s/g, '$1s');

return human;
};
}
//# sourceMappingURL=formatDurationMs.js.map
{
"name": "@transloadit/format-duration-ms",
"version": "0.4.3",
"version": "1.0.0",
"repository": {

@@ -12,7 +12,11 @@ "type": "git",

"types": "dist/formatDurationMs.d.ts",
"files": [
"dist",
"src",
"!*.test.*"
],
"scripts": {
"build": "tsc --build --clean && tsc --build",
"typecheck": "tsc --noEmit",
"test": "tsx --test src/**/*.test.ts",
"test:watch": "tsx --test --watch src/**/*.test.ts"
"prepack": "tsc --build",
"test": "tsc --build && node --test --enable-source-maps",
"test:watch": "node --test --enable-source-maps --watch"
},

@@ -19,0 +23,0 @@ "dependencies": {

import prettyMS = require('pretty-ms')
export = function formatDurationMs(ms: number): string {
export function formatDurationMs(ms: number): string {
let human = prettyMS(ms)

@@ -5,0 +5,0 @@

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