mirror of https://github.com/lukechilds/node.git
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.
18 lines
323 B
18 lines
323 B
10 years ago
|
# 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']
|
||
|
})
|
||
|
```
|