Security News
The Push to Ban Ransom Payments Is Gaining Momentum
Ransomware costs victims an estimated $30 billion per year and has gotten so out of control that global support for banning payments is gaining momentum.
kinode
Advanced tools
Readme
kinode is dependency injection to register module to global access, you can load each given module from kraken.config.json, without the need to load module using require
or import
again in every file, then module can be accessed as a global with very easy and then only register modules to kraken config, which you often the most used in each every file, example module like axios
, lodash
, moment
etc.
$ npm install kinode -S or yarn add kinode -S
{
"packages": [
{
"name": "$axios",
"module": "axios"
},
{
"name": "$_",
"module": "lodash"
},
{
"name": "$moment",
"module": "moment",
"inject": false
}
]
}
require('kinode').config()
$axios.get('https://jsonplaceholder.typicode.com/users')
.then(res => console.log(res.data))
.catch(err => console.log(err.response.data))
require('kinode/config')
$axios.get('https://jsonplaceholder.typicode.com/users')
.then(res => console.log(res.data))
.catch(err => console.log(err.response.data))
import { config } from 'kinode'
config()
$axios.get('https://jsonplaceholder.typicode.com/users')
.then(res => console.log(res.data))
.catch(err => console.log(err.response.data))
import 'kinode/config'
$axios.get('https://jsonplaceholder.typicode.com/users')
.then(res => console.log(res.data))
.catch(err => console.log(err.response.data))
import { config } from 'kinode'
config()
global.$axios.get('https://jsonplaceholder.typicode.com/users')
.then(res => console.log(res.data))
.catch(err => console.log(err.response.data))
import 'kinode/config'
global.$axios.get('https://jsonplaceholder.typicode.com/users')
.then(res => console.log(res.data))
.catch(err => console.log(err.response.data))
require('kinode').config({ directory: 'config' })
$axios.get('https://jsonplaceholder.typicode.com/users')
.then(res => console.log(res.data))
.catch(err => console.log(err.response.data))
import { config } from 'kinode'
config({ directory: 'config' })
$axios.get('https://jsonplaceholder.typicode.com/users')
.then(res => console.log(res.data))
.catch(err => console.log(err.response.data))
import { config } from 'kinode'
config({ directory: 'config' })
global.$axios.get('https://jsonplaceholder.typicode.com/users')
.then(res => console.log(res.data))
.catch(err => console.log(err.response.data))
Testing Via Local
npm test or make test
Testing Via Local And Build
make build
Testing Via Docker
docker build -t kraken-node or make dkb tag=kraken-node
For information on bugs related to package libraries, please visit here
Want to make kraken-node more perfect ? Let's contribute and follow the contribution guide.
FAQs
kraken-node dependency injection to register module to global access
We found that kinode 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
Ransomware costs victims an estimated $30 billion per year and has gotten so out of control that global support for banning payments is gaining momentum.
Application Security
New SEC disclosure rules aim to enforce timely cyber incident reporting, but fear of job loss and inadequate resources lead to significant underreporting.
Security News
The Python Software Foundation has secured a 5-year sponsorship from Fastly that supports PSF's activities and events, most notably the security and reliability of the Python Package Index (PyPI).