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

gulp-util

Package Overview
Dependencies
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-util - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

lib/prettyTime.js

1

index.js
module.exports = {
realBase: require('./lib/realBase'),
replaceExtension: require('./lib/replaceExtension'),
prettyTime: require('./lib/prettyTime'),
colors: require('chalk'),

@@ -5,0 +6,0 @@ log: require('./lib/log'),

2

package.json
{
"name": "gulp-util",
"description": "Utility functions for gulp plugins",
"version": "1.1.0",
"version": "1.1.1",
"homepage": "http://github.com/wearefractal/gulp-util",

@@ -6,0 +6,0 @@ "repository": "git://github.com/wearefractal/gulp-util.git",

@@ -21,2 +21,32 @@ var util = require('../');

describe('prettyTime()', function(){
it('should work with seconds', function(done){
util.prettyTime(1.5).should.eql({
value: 1.5,
unit: "seconds",
shortUnit: "s"
});
done();
});
it('should work with milliseconds', function(done){
util.prettyTime(0.5).should.eql({
value: 500,
unit: "milliseconds",
shortUnit: "ms"
});
done();
});
it('should work with milliseconds', function(done){
util.prettyTime(0.01).should.eql({
value: 10,
unit: "milliseconds",
shortUnit: "ms"
});
done();
});
});
describe('template()', function(){

@@ -23,0 +53,0 @@ it('should work with just a template', function(done){

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