Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

sprintfit

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sprintfit

Small sprintf and vsprintf format specifier focused on strings.

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
56
decreased by-67.06%
Maintainers
1
Weekly downloads
 
Created
Source

Sprintfit Build Status npm npm JavaScript Style Guide

Small sprintf and vsprintf format specifier focused on strings.

:information_source: Notice: sprintf and vsprintf will treat their arguments as strings only. If you are looking for the full specification you could try sprintf.js or printj.

Install

Yarn

yarn add sprintfit

NPM

npm install sprintfit

UMD file is also available on unpkg:

<script src="https://unpkg.com/sprintfit/sprintfit.umd.min.js"></script>

You can use the library via window.sprintfit.

Usage

sprintf

Return a formatted string and accepts a variable number of arguments.

import { sprintf } from 'sprintfit'

sprintf('date: %s-%s-%s', 2018, 07, 25)
// date: 2018-07-25

vsprintf

Operates as sprintf() but accepts an array of arguments.

import { vsprintf } from 'sprintfit'

vsprintf('date: %s-%s-%s', [2018, 07, 28])
// date: 2018-07-28

Contributions

Feel free to send some Pull request or issue.

License

MIT license

© 2018 José Luis Quintana

Keywords

FAQs

Package last updated on 26 Jul 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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