
Security News
Federal Audit Finds NIST Wasted Funds With No Plan to Clear NVD Backlog
Federal audit finds NIST lacked a plan to clear the NVD backlog, wasted funds on duplicate work, and delayed use of CISA data.
@devup-api/generator
Advanced tools
TypeScript interface generator from OpenAPI schemas.
npm install @devup-api/generator
generateInterface(schema: OpenAPIV3_1.Document, options?: DevupApiTypeGeneratorOptions): string - Generate TypeScript interface definitions from OpenAPI schemacreateUrlMap(schema: OpenAPIV3_1.Document, options?: DevupApiTypeGeneratorOptions): Record<string, UrlMapValue> - Create URL map from OpenAPI schemaimport { generateInterface } from '@devup-api/generator'
import { readOpenapiAsync } from '@devup-api/utils'
const schema = await readOpenapiAsync('openapi.json')
const interfaceCode = generateInterface(schema, {
convertCase: 'camel',
responseDefaultNonNullable: true
})
// Write to file
await writeFile('api.d.ts', interfaceCode)
import { createUrlMap } from '@devup-api/generator'
import { readOpenapiAsync } from '@devup-api/utils'
const schema = await readOpenapiAsync('openapi.json')
const urlMap = createUrlMap(schema, {
convertCase: 'camel'
})
// urlMap will contain entries like:
// {
// 'getUsers': { method: 'GET', url: '/users' },
// '/users': { method: 'GET', url: '/users' }
// }
interface DevupApiTypeGeneratorOptions {
convertCase?: 'snake' | 'camel' | 'pascal' | 'maintain'
requestDefaultNonNullable?: boolean
responseDefaultNonNullable?: boolean
}
Apache 2.0
FAQs
Unknown package
We found that @devup-api/generator demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Federal audit finds NIST lacked a plan to clear the NVD backlog, wasted funds on duplicate work, and delayed use of CISA data.

Research
/Security News
A mini Shai-Hulud campaign compromised Red Hat Cloud Services npm packages to steal developer and CI/CD secrets during installation.

Research
/Security News
The North Korean malware loader hides in a Packagist-listed package and its GitHub branch to fetch and execute remote code in a likely Contagious Interview-style lure.