mirror of
https://github.com/nodejs/node.git
synced 2025-05-15 08:02:06 +00:00

PR-URL: https://github.com/nodejs/node/pull/3310 Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
18 lines
323 B
Markdown
18 lines
323 B
Markdown
# readdir-scoped-modules
|
|
|
|
Like `fs.readdir` but handling `@org/module` dirs as if they were
|
|
a single entry.
|
|
|
|
Used by npm.
|
|
|
|
## USAGE
|
|
|
|
```javascript
|
|
var readdir = require('readdir-scoped-modules')
|
|
|
|
readdir('node_modules', function (er, entries) {
|
|
// entries will be something like
|
|
// ['a', '@org/foo', '@org/bar']
|
|
})
|
|
```
|