
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@rahul_tripathi/galaxy
Advanced tools
Galaxy is a tiny routing framework for Nodejs and AWS Lambda λ;
$ npm i @rahul_tripathi/galaxy
let galaxy = require('@rahul_tripathi/galaxy')
let apiRouter = galaxy.Galaxy('api') //initalize with /api endpoint
handler = (x)=>{return x}
let testRouter = galaxy.Star('test1') // create an intermediate router
testRouter.append(galaxy.Moon('hello', handler ,'GET'))
apiRouter.append(testRouter)
console.log(apiRouter.resolve({httpMethod :'GET',path:'/api/test1/hello'}))
let galaxy = require('@rahul_tripathi/galaxy')
let apiRouter = galaxy.Galaxy('api') //initalize with /api endpoint
handler = (x)=>{return x}
apiRouter.append(galaxy.Moon('hello/$id/someother', handler,'GET')) //directly adding Moon to Galaxy is allowed
console.log(apiRouter.resolve({httpMethod : 'GET',path :'/api/hello/abc/mnop?abc=k'}))
//This Outputs
{
httpMethod: 'GET',
path: '/api/hello/abc/someother?abc=k',
params: { id: 'abc' }
}
FAQs
tiny api routing library for aws lambda
We found that @rahul_tripathi/galaxy 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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.