Numeric Production Mechanism

    jspot

    0.3.17 • Public • Published

    jspot

    Extracts gettext strings from Javascript files into pot files.

    $ jspot extract file.js -k _
    
    _('foo');
    _.ngettext('bar', 'bars', 23);

    How to install

    # npm install -g jspot
    

    How to use

    $ jspot --help                      
    
    Usage: jspot <command>
    
    command     
      extract     Extract source from javascript files into pot files
      json        Convert po files to Jed-compatible json files (using po2json)
    
    $ jspot extract --help
    
    Usage: jspot extract <source>... [options]
    
    source     The source files to extract from.
    
    Options:
       -t DIR, --target DIR      Directory to write pot files to.  [.]
       -k WORD, --keyword WORD   Keyword to search for in source  [gettext]
       --header NAME:VALUE       Set a header for the written pot files
    
    Extract source from javascript files into pot files
    

    Install

    npm i jspot

    DownloadsWeekly Downloads

    47

    Version

    0.3.17

    License

    BSD

    Unpacked Size

    168 kB

    Total Files

    56

    Last publish

    Collaborators

    • justinvdm
    • praekeltdev