
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
Build index of EcmaScript package.
Index file can be used as entry key of webpack configuration.
-t option.node jf-index -i /path/to/srcdir
Some info can be retrieved from package.json:
node jf-index -i /path/to/srcdir -p /path/to/package.json
Directory tree:
└─┬ base.mjs
└─┬ type
└─┬ base.mjs
├─┬ collection
│ ├── base.mjs
│ └── users.mjs
└─┬ item
├── base.mjs
└── user.mjs
Index generated:
import Base from './base.mjs';
import TypeBase from './type/base.mjs';
import TypeCollectionBase from './type/collection/base.mjs';
import TypeCollectionUsers from './type/collection/users.mjs';
import TypeItemBase from './type/item/base.mjs';
import TypeItemUser from './type/item/user.mjs';
/**
* Archivo índice creado con `@jf/index`.
*
* @author Joaquín Fernández
* @created Fri Apr 21 2017 00:25:03 GMT+0200 (CEST)
* @version 0.1
*/
export default {
Base : Base,
type : {
Base : TypeBase,
collection : {
Base : TypeCollectionBase,
Users : TypeCollectionUsers
},
item : {
Base : TypeItemBase,
User : TypeItemUser
}
}
};
Index generated:
const Base = require('./base.mjs');
const TypeBase = require('./type/base.mjs');
const TypeCollectionBase = require('./type/collection/base.mjs');
const TypeCollectionUsers = require('./type/collection/users.mjs');
const TypeItemBase = require('./type/item/base.mjs');
const TypeItemUser = require('./type/item/user.mjs');
/**
* Archivo índice creado con `@jf/index`.
*
* @author Joaquín Fernández
* @created Fri Apr 21 2017 00:25:03 GMT+0200 (CEST)
* @version 0.1
*/
module.exports = {
Base : Base,
type : {
Base : TypeBase,
collection : {
Base : TypeCollectionBase,
Users : TypeCollectionUsers
},
item : {
Base : TypeItemBase,
User : TypeItemUser
}
}
};
FAQs
Build index of EcmaScript/CommonJS package.
We found that @jf/index 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
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.