Socket
Socket
Sign inDemoInstall

grunt-cat

Package Overview
Dependencies
30
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    grunt-cat

Echo a file to the terminal. Works with text, figlets, ascii art, and full-color ansi.


Version published
Weekly downloads
9
increased by80%
Maintainers
1
Install size
313 kB
Created
Weekly downloads
 

Readme

Source

grunt-cat

Cat a file to the terminal. Works great with text, ascii art, and even colorful ansi.

This task requires Grunt 0.4 or above.

Getting Started

npm install grunt-cat --save-dev

Once that's done, add this line to your project's Gruntfile:

grunt.loadNpmTasks('grunt-cat');

Cat a file

The notify MutiTask

Show a message whenever you want!

grunt.initConfig({
  cat: {
    logo: {
      file: 'files/logo.txt'
    },
    prod: {
      file: 'files/prod-logo.txt'
    },
    multi: {
      src: ['files/**/*.txt']
    },
    multi_stream: {
      options: {linebreak:false},
      src: ['files/**/*.txt']
    }
  }
});

grunt.loadNpmTasks('grunt-cat');

// simplified example
grunt.registerTask('server', ['cat:logo', 'uglify', 'sass', 'server', 'notify:server']);

Watch example

Options

  • file (required): Path to the file. This is relative to the root of your project.

Tests

Run grunt to lint and run the tests.

Doodle or Die

This project was created for and is used by Doodle or Die.

This is what it looks like when we run our local dev server using the production MongoDB:

Doodle or Die example

Release History

June 11 - Added linebreak option, added src grunt convention (globbing/filter) March 17 - Update readme, dependency versions. Dec 28 - First version

Keywords

FAQs

Last updated on 16 Jun 2013

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc