Wondering what’s next for npm?Check out our public roadmap! »

    format-string

    1.0.0 • Public • Published

    format-string

    Format a string, using values from an object.

    Installation

    npm install format-string

    Usage

      var formatString = require('format-string');
     
      var user = {
        name: 'Stoeffel',
        modified: new Date()
      };
      formatString('Hello, :name (:modified)', user); // => Hello, Stoeffel (31.12.2014)

    CLI

      $ format-string 'Hello, :name (:modified)' --name stoeffel --modified `date +"%m.%d.%y"`

    Install

    npm i format-string

    DownloadsWeekly Downloads

    5

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • avatar