Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
supershit
Advanced tools
Readme
Lightweight search-engine friendly single-page web framework
NodeJS >= 8
npm i supershit -g
Lets create a simple REST API in a few steps.
const api = supershit.api('/api')
api.route('/hello', {
get() {
return { message: 'Hello World!' }
}
})
You'll find this example in examples/simple-api.js
folder.
Start the example by using the command node examples/simple-api.js
and fire a curl to the API.
curl -X GET -H "accept: application/json" http://localhost:7448/api/hello
# Response
< HTTP/1.1 200 OK
< Access-Control-Allow-Origin: *
< Content-Type: application/json; charset=utf-8
< Content-Length: 26
{"message":"Hello World!"}
Read more about the api()
method at REST API page
The default port is 7448. Supershit starts a webserver when it's required. Use the start command supershit start
to start the app in clustermode or for development the dev command supershit dev
, it reloads the app everytime when a source file changes.
Refer to CLI page to get a list of all supported commands.
Supershit reads config from config/${process.env.NODE_ENV}.json
. A config file can be either a .json
, .cson
or .yaml
file.
// load config from config files
const config = supershit.config()
Read more about config at the Config page.
const log = supershit.logger()
log.info('App started successful,', {
port: 7448
})
log.debug('Process id:,', process.pid)
Read more about logging at the Logging page.
FAQs
I peace of awsomeshit which improves your live.
The npm package supershit receives a total of 0 weekly downloads. As such, supershit popularity was classified as not popular.
We found that supershit 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.