@jouwomgeving/package-name-regexp
v0.1.0
Published
Regular expression for matching names of installed npm packages.
Downloads
10
Readme
@jouwomgeving/package-name-regexp
Regular expression for matching names of installed npm packages.
Purpose
Useful when you have to provide a regular expression to a configuration,
e.g. externals
in a webpack configuration.
For proper package name validation, use
validate-npm-package-name
instead.
NB: for simplicity's sake, not all URL-safe characters are currently matched. Feel free to add support for edge cases once you add tests. :-)
License
UNLICENSED