Socket
Socket
Sign inDemoInstall

format

Package Overview
Dependencies
0
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.4 to 0.2.0

.npmignore

9

package.json
{
"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 @@ ;

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc