format
Advanced tools
Comparing version 0.1.4 to 0.2.0
{ | ||
"name": "format", | ||
"description": "printf, sprintf, and vsprintf for JavaScript", | ||
"version": "0.1.4", | ||
"version": "0.2.0", | ||
"homepage": "http://samhuri.net/proj/format", | ||
@@ -15,6 +15,3 @@ "author": "Sami Samhuri <sami@samhuri.net>", | ||
}, | ||
"directories": { | ||
"lib": "./lib" | ||
}, | ||
"main": "./lib/index", | ||
"main": "./format", | ||
"engines": { | ||
@@ -25,3 +22,3 @@ "node": ">=0.4.x" | ||
{ | ||
"type": "MIT", | ||
"type": "ISC", | ||
"url": "http://github.com/samsonjs/format/raw/master/LICENSE" | ||
@@ -28,0 +25,0 @@ } |
@@ -18,5 +18,7 @@ format | ||
var Format = require('format') | ||
, printf = Format.printf | ||
, format = Format.format // aliased as sprintf as well | ||
var format = require('format') | ||
, printf = format.printf | ||
, vsprintf = format.vsprintf | ||
// or if you want to keep it old school | ||
, sprintf = format | ||
@@ -30,2 +32,5 @@ // Print 'hello world' | ||
vsprintf('%d is the answer to %s', [42, what]) | ||
// => '42 is the answer to life, the universe, and everything' | ||
Supported format specifiers: b, c, d, f, o, s, x, and X. | ||
@@ -39,4 +44,4 @@ | ||
Copyright 2010 - 2011 Sami Samhuri sami@samhuri.net | ||
Copyright 2010 - 2013 Sami Samhuri sami@samhuri.net | ||
ISC (see included [LICENSE](/samsonjs/format/blob/master/LICENSE)) | ||
ISC (like MIT) (see included [LICENSE](/samsonjs/format/blob/master/LICENSE)) |
@@ -1,2 +0,3 @@ | ||
var format = require('./lib') | ||
var filename = process.argv[2] || './format.js' | ||
, format = require(filename) | ||
, printf = format.printf | ||
@@ -3,0 +4,0 @@ ; |
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
8148
9
130
45
2
1