Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Yet another JavaScript fatigue tool but this one let's you focus only on what's important: your application!
Hackages depends on Node.js and npm. Also make sure that git is installed as some hackages packages require it to be fetched and installed.
Create a directory for your project, and place the following files in this directory:
File package.json:
{
"name": "name-of-your-site",
"version": "0.0.1",
"main": "index.js",
"scripts": {
"test": "jest",
"run:browser": "hackages live",
"run:watch": "hackages watch",
"prestart": "npm i",
"start": "npm-run-all --parallel run:watch run:browser"
},
"author": "your-name",
"license": "MIT",
"dependencies": {
"react": "^15.0.2",
"react-dom": "^15.0.2"
},
"devDependencies": {
"hackages": "^0.0.8",
"npm-run-all": "^2.1.1"
}
}
File index.html:
<html>
<body>
<div id="app"></div>
<script src="dist/index.js"></script>
</body>
</html>
File index.js:
import React from 'react';
import ReactDOM from 'react-dom';
const App = () => <h1>Hello hackages!</h1>;
ReactDOM.render(<App/>, document.getElementById('app'));
Now execute the following command to get started:
$ npm start
If you need more options, the hackages command has the following command-line parameters:
Usage: hackages <command> [options]
hackages not hackage like Haskell
Options:
[--help, -?] Display help about this program
[--version, -V] Display the version of this program
Available Commands:
help display help about this program
build Build all your static assets using Webpack
lint Lint JS file following airBnB coding guidelines by default
watch Watch files using webpack, babel, eslint
ci Generate mocha.json and report for continuous integration
test Running unit tests with Karma
live Starting local server on port 8000
deploy Deploy static assets quickly for immediate feedback
(The MIT License)
Copyright (c) 2016 Hackages 007@hackages.io
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
FAQs
cli tools to build fast and scalable applications
The npm package hackages receives a total of 0 weekly downloads. As such, hackages popularity was classified as not popular.
We found that hackages 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.