globject
Advanced tools
Weekly downloads
Readme
Get values by glob-like keys
npm install globject --save
var globject = require('globject');
var routes = {
'**/about/**': 'about.html',
'**': 'index.html'
};
var routesObj = globject(routes);
console.log(routesObj('/about/somepage.html')); // OUTPUTS: about.html
console.log(routesObj('/any/route.html'')); // OUTPUTS: index.html
npm install
npm test
FAQs
Get values by glob-like keys
The npm package globject receives a total of 752 weekly downloads. As such, globject popularity was classified as not popular.
We found that globject 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 installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.