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

strftime

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

strftime - npm Package Compare versions

Comparing version 0.5.1 to 0.5.2

strftime-min.js

6

component.json

@@ -6,5 +6,5 @@ {

"keywords": ["strftime", "format", "date", "time"],
"version": "0.5.1",
"main": "lib/index.js",
"scripts": ["lib/index.js"]
"version": "0.5.2",
"main": "strftime.js",
"scripts": ["strftime.js"]
}
{
"name": "strftime",
"description": "strftime for JavaScript",
"version": "0.5.1",
"version": "0.5.2",
"homepage": "http://samhuri.net/proj/strftime",

@@ -21,6 +21,3 @@ "author": "Sami Samhuri <sami@samhuri.net>",

},
"directories": {
"lib": "./lib"
},
"main": "./lib/index",
"main": "./strftime.js",
"engines": {

@@ -32,10 +29,5 @@ "node": ">=0.2.0"

"type": "MIT",
"url": "http://github.com/samsonjs/strftime/raw/master/LICENSE"
"url": "http://sjs.mit-license.org"
}
],
"component": {
"scripts": {
"strftime": "./lib/index.js"
}
},
"dependencies": {},

@@ -42,0 +34,0 @@ "devDependencies": {},

@@ -96,4 +96,10 @@ strftime

For more detail see `man 3 strftime` as the format specifiers should behave identically. If behaviour differs please [file a bug](https://github.com/samsonjs/strftime/issues/new).
For more detail see `man 3 strftime` as the format specifiers should behave
identically. If behaviour differs please [file a bug](https://github.com/samsonjs/strftime/issues/new).
Any specifier can be modified with `-`, `_`, or `0` as well, as in Ruby.
Using `%-` will omit any leading zeroes or spaces, `%_` will force spaces
for padding instead of the default, and `%0` will force zeroes for padding.
There's some redundancy here as `%-d` and `%e` have the same result, but it
solves some awkwardness with formats like `%l`.

@@ -114,2 +120,3 @@ Contributors

MIT (see included [LICENSE](/samsonjs/strftime/blob/master/LICENSE))
[MIT license](http://sjs.mit-license.org)

@@ -11,3 +11,4 @@ #!/usr/bin/env node

var assert = require('assert')
, lib = require('../lib')
, libFilename = process.argv[2] || '../strftime.js'
, lib = require(libFilename)

@@ -45,2 +46,3 @@ // Tue, 07 Jun 2011 18:51:45 GMT

assert.format('%C', '01', '01', new Date(100, 0, 1))
assert.format('%j', '097', '098', new Date(1365390736236))
ok('Time zones (' + process.env.TZ + ')')

@@ -51,2 +53,3 @@ }

assert.format('%C', '01', '00', new Date(100, 0, 1))
assert.format('%j', '098', '098', new Date(1365390736236))
ok('Time zones (' + process.env.TZ + ')')

@@ -66,2 +69,5 @@ }

assert.format('%d', '07')
assert.format('%-d', '7')
assert.format('%_d', ' 7')
assert.format('%0d', '07')
assert.format('%e', '7')

@@ -72,2 +78,5 @@ assert.format('%F', '2011-06-07')

assert.format('%I', null, '06')
assert.format('%-I', null, '6')
assert.format('%_I', null, ' 6')
assert.format('%0I', null, '06')
assert.format('%j', null, '158')

@@ -77,2 +86,5 @@ assert.format('%k', null, '18')

assert.format('%l', null, ' 6')
assert.format('%-l', null, '6')
assert.format('%_l', null, ' 6')
assert.format('%0l', null, '06')
assert.format('%M', null, '51')

@@ -79,0 +91,0 @@ assert.format('%m', '06')

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