
Research
/Security News
60 Malicious Ruby Gems Used in Targeted Credential Theft Campaign
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
caddy-json-types
Advanced tools
TypeScript typings for Caddy JSON configuration. This package provides comprehensive TypeScript definitions for Caddy's JSON configuration format, enabling type safety and enhanced developer experience when working with Caddy's configuration files in Type
TypeScript typings for Caddy JSON configuration. This package provides comprehensive TypeScript definitions for Caddy's JSON configuration format, enabling type safety and enhanced developer experience when working with Caddy's configuration files in TypeScript projects.
You can install the package via npm:
npm install caddy-json-types
Or with yarn:
yarn add caddy-json-types
To use the typings in your TypeScript project, import the package in your TypeScript files:
import type { IConfig } from 'caddy-json-types';
// Example usage
const config: IConfig = {
// your Caddy JSON configuration here
};
Here's an example of how you can use the typings with a Caddy JSON configuration:
import type { IConfig } from 'caddy-json-types';
const config: IConfig = {
apps: {
http: {
servers: {
myserver: {
listen: [\":443\"],
routes: [
{
match: [
{
host: [\"example.com\"]
}
],
handle: [
{
handler: \"static_response\",
body: \"Hello, world!\"
}
]
}
]
}
}
}
}
};
// Use the config object as needed
console.log(config);
Contributions are welcome! Please open an issue or submit a pull request if you have any improvements or fixes.
git checkout -b my-feature-branch
)git commit -am 'Add new feature'
)git push origin my-feature-branch
)This project is licensed under the MIT License. See the LICENSE file for details.
This project is not affiliated with or endorsed by the Caddy project. It is an independent project created to improve the developer experience when working with Caddy JSON configurations in TypeScript.
For more information on Caddy and its configuration options, please visit the official Caddy documentation.
FAQs
TypeScript typings for Caddy JSON configuration. This package provides comprehensive TypeScript definitions for Caddy's JSON configuration format, enabling type safety and enhanced developer experience when working with Caddy's configuration files in Type
The npm package caddy-json-types receives a total of 331 weekly downloads. As such, caddy-json-types popularity was classified as not popular.
We found that caddy-json-types demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.
Research
/Security News
Two npm packages masquerading as WhatsApp developer libraries include a kill switch that deletes all files if the phone number isn’t whitelisted.