JSPM

  • Created
  • Published
  • Downloads 11
  • Score
    100M100P100Q68340F
  • License ISC

replace spaces with hyphens, lowercase all characters

Package Exports

  • spacesjs

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 (spacesjs) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

###SpacesJS

This is a little Node.js program for renaming files in the current working directory. It will replace spaces with hyphens and will convert all uppercase characters to lowercase ones.

Technically, the regular expression selects all whitespace (any number of spaces, tabs, linefeeds, and carriage returns) and/or two or more consecutive hyphens. These groups of characters will be replaced with a SINGLE hyphen, and the result will be forced to lowercase.