Skip to content

rauchg/s.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

s.js: minimalistic javascript sprintf().

// standalone
s('http://%s:%d', 'localhost', 40)
s('got %j', { this: 'will be JSON.stringified' })

// extend String.prototype
s.extend();
'http://%s:%d'.s('localhost', 40);
  • Node/browser compatible. Published as s on npm.
  • Opt-in String.prototype extension
  • Only supports %s and %d. Escape % as %%.

About

tiny javascript sprintf

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published