web 3d图形渲染器
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
710 B

  1. # node-modules-regexp [![Build Status](https://travis-ci.org/jamestalmage/node-modules-regexp.svg?branch=master)](https://travis-ci.org/jamestalmage/node-modules-regexp)
  2. > A regular expression for file paths that contain a `node_modules` folder.
  3. ## Install
  4. ```
  5. $ npm install --save node-modules-regexp
  6. ```
  7. ## Usage
  8. ```js
  9. const nodeModules = require('node-modules-regexp');
  10. nodeModules.test('/foo/node_modules/bar.js');
  11. //=> true
  12. nodeModules.test('/foo/bar.js');
  13. //=> false
  14. ```
  15. ## API
  16. The returned value is a regular expression, [soooo....](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp).
  17. ## License
  18. MIT © [James Talmage](http://github.com/jamestalmage)