
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.
Use /glob/strings/**/*.* as javascript object properties! :sparkles:
npm install glob-props
yarn install glob-props
import { GlobProps } from 'glob-props'
// define a regular object with glob expressions for keys.
// the values are not constrained in any way.
const regularObject = {
'src/**/*.*': 'isSrc',
'dst/**/*.*': 'isDst'
};
const globber = GlobProps(obj);
// Accessing `globber` by a specific key returns:
// 1. A match on the first property that the key matches.
// 2. undefined when no match is found, just like regualrObject.
globber['src/index.ts'] // returns 'isSrc'
globber['src/deep/er/search.txt'] // returns 'isSrc'
globber['dst/index.ts'] // returns 'isDst'
globber['non-existant/glob/pattern'] // returns undefined
glob-props creates an object proxy over a regularObject.
When accessed with a concrete string, the proxied get method performs a glob search, returning the value of the first glob that matches the concrete string.
glob-props makes it trivially simple to create a many-to-one mapper or simple routers.
The look up is reduced to an object access. And then again, why not?!
Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.
Bugs, PRs, comments, suggestions welcomed!
FAQs
Allows using glob strings as object keys! ✨
We found that glob-props 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.