Gathering detailed insights and metrics for rfolderify
Gathering detailed insights and metrics for rfolderify
Gathering detailed insights and metrics for rfolderify
Gathering detailed insights and metrics for rfolderify
npm install rfolderify
Typescript
Module System
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
4 Stars
25 Commits
2 Forks
3 Watchers
1 Branches
3 Contributors
Updated on Mar 14, 2016
Latest Version
1.3.0
Package Id
rfolderify@1.3.0
Size
3.66 kB
NPM Version
1.4.9
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
2
Convert any code using rfile and derivatives so that it supports browserify.
This module is a plugin for browserify to parse the AST for rfolder
calls so that you can inline the folder contents into your bundles.
For a main.js
1var contents = rfolder('./misc'); 2console.log(contents['robot'].hello());
And a misc/robot.js file.
1exports.hello = function() { 2 return("Beep boop"); 3}
first npm install rfolderify
into your project, then:
$ browserify -t rfolderify example/main.js > bundle.js
1var browserify = require('browserify'); 2var fs = require('fs'); 3 4var b = browserify('example/main.js'); 5b.transform('rfolderify'); 6 7b.bundle().pipe(fs.createWriteStream('bundle.js'));
You can pass an options
parameter to rfolder:
1var contents = rfolder('./misc', {extensions: [".coffee", ".jade"], keepExt: [".jade"]});
Valid options are:
extensions
- A list of extensions to require. If this is not provided, the default is to
require any file which node.js would require. e.g. [".js", ".coffee", ".jade"]
to require all
.js, .coffee, and .jade files from the directory.checkExt
- If false, then extensions
will be ignored, and all files will be required
regardless of their extension.keepExt
- By default, rfolder strips extensions from file names when generating keys for the
folder object. keepExt
can be set true
to keep all extensions, or to an array of extensions
to keep. For example, if you have a folder containing a "robot.js" and a "robot.jade", then
passing {keepExt: '.jade'}
would make it so contents['robot']
would refer to the .coffee file,
while contents['robot.jade']
would refer to the jade file.require
- JS string used to require each file. Defaults to "require".A tiny command-line program ships with this module for easier debugging and if you just want this without any of the rest of browserify.
npm install rfolderify -g
rfolderify --help
MIT
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 2/24 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
license file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More