
Security News
Socket Releases Free Certified Patches for Critical vm2 Sandbox Escape
A critical vm2 sandbox escape can allow untrusted JavaScript to break isolation and execute commands on the host Node.js process.
@programmerraj/create-index-js
Advanced tools
Creates an index.js file which exports all the files from a directory.
Creates an index.js file which exports all the files from a directory.
Isn't this so inconvenient:
import a from './dir/a.js'
import b from './dir/b.js'
Instead you can do this:
import { a, b } from './dir/index.js'
./dir/index.js Will be automatically generated:
export a from './a.js'
export b from './b.js'
Sub directories are also exported:
export { default as goodNumber } from './goodNumber.js'
export { default as isOdd } from './isOdd.js'
export * as fruits from './fruits/index.js'
create-index-js myDir
Use -w or --watch option to re-create file when files get created or deleted. This mode is efficient because it only re-creates the file when it needs to, and doesn't do any extra file system operations.
Do -h or --help to see all options
All helper files are exported, but the files that are probably useful are run/run.js and runWithWatch/runWithWatch.js.
import { run } from '@programmerraj/create-index-js'
run.run(options)
import { runWithWatch } from '@programmerraj/create-index-js'
runWithWatch.runWithWatch(options)
TypeScript types are published. You can see the online TypeDocs at https://chocolateloverraj.github.io/create-index-js.
FAQs
Creates an index.js file which exports all the files from a directory.
The npm package @programmerraj/create-index-js receives a total of 15 weekly downloads. As such, @programmerraj/create-index-js popularity was classified as not popular.
We found that @programmerraj/create-index-js demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
A critical vm2 sandbox escape can allow untrusted JavaScript to break isolation and execute commands on the host Node.js process.

Research
Five malicious NuGet packages impersonate Chinese .NET libraries to deploy a stealer targeting browser credentials, crypto wallets, SSH keys, and local files.

Security News
pnpm 11 turns on a 1-day Minimum Release Age and blocks exotic subdeps by default, adding safeguards against fast-moving supply chain attacks.