
Security News
Feross on TBPN: How North Korea Hijacked Axios
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.
@kernel-js/api
Advanced tools
Package to easily develop REST API following JSON API specification.
First of all I created this to support development of Kernel Framework.
Just like the rest of the packages that make up the framework, I make the most of other existing libraries that are well
tested on a day-to-day basis. The idea is not to reinvent the wheel, just join the ideas in a lightweight framework
(the focus is on the client side), simple to use and make the code on the front more beautiful and organized.
npm install @kernel-js/api
É necessario criar uma classe que herdará e sobrescreverá os metodos dessa classa dentro da sua aplicação Essa mesma classe vai ser herdada pelas entidades da aplicação.
export default class Entity extends EntityManager {
async request (config) {
return Axios.request(config); // Você retornará a instancia do axios na sua aplicação
}
baseUrl() {
return 'http://127.0.0.1:8000/api'
}
}
Você sobreescreverá os metodos de entity na sua aplication-entity (user) informando os dados e relacionamentos da mesma.
export default class Post extends Entity{
resourceName() {
return 'users';
}
fields() {
return ['name', 'email', 'subnick'];
}
relationshipNames() {
return ['company', 'owner'];
}
}
This library was developed by
Please do! Check out our Contributing guidelines.
MIT © 2018-2018 Kernel JS
FAQs
Package to easily develop REST API following JSON API specification.
The npm package @kernel-js/api receives a total of 7 weekly downloads. As such, @kernel-js/api popularity was classified as not popular.
We found that @kernel-js/api demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.

Security News
OpenSSF has issued a high-severity advisory warning open source developers of an active Slack-based campaign using impersonation to deliver malware.

Research
/Security News
Malicious packages published to npm, PyPI, Go Modules, crates.io, and Packagist impersonate developer tooling to fetch staged malware, steal credentials and wallets, and enable remote access.