JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 68
  • Score
    100M100P100Q70244F

Trim trailing spaces from each line of the selected files

Package Exports

  • grunt-trimtrailingspaces

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (grunt-trimtrailingspaces) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

grunt-trimtrailingspaces

Trim trailing spaces from each line of the selected files

Getting Started

Add this to your project's Gruntfile.js gruntfile:

grunt.loadNpmTasks('grunt-trimtrailingspaces');

Then add "grunt-trimtrailingspaces" to your package.json dependencies. This can be done with:

npm install grunt-trimtrailingspaces --save-dev

Or by manually editing the "package.json" by adding the following line inside devDependencies object:

  "grunt-trimtrailingspaces": "~0.1.0"

Later on it would be possible to install the plugin with the command npm install

It can be updated with the command npm update, in case there is a newer version in the NPM repository.

The name to use in your own task definitions is trimtrailingspaces.

Documentation

Add an entry to your "Gruntfile.js", within the initConfig object, which will define the files of which will the trailing spaces to be removed.

  ...

  trimtrailingspaces: {
    extensions: ['js', 'css', 'html'],
    directories: ['.', 'templates', 'public_html/js', 'public_html/css'],
    encoding: 'utf8'
  }

  ...

To run it:

grunt trimtrailingspaces

Dependencies

This module depends only on one 3rd party module, namely string.js.

License

Copyright (c) 2013 Juga Paazmaya olavic@gmail.com Licensed under the MIT license.