
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
A simple jQuery Single Page Application Plugin
Three quick start options are available:
git clone https://github.com/carlosrfjunior/runspa.git.npm install runspa.bower install runspa.yarn add runspa.Include files:
dist/
├── runspa.js (80 KB)
└── runspa.min.js (68 KB)
<script src="/path/to/jquery.js"></script><!-- jQuery is required -->
<script src="/path/dist/runspa.min.js"></script>
<a href="#my/list" data-spa="my/list"></a> <!-- Definition menu or Button [Route Hash] -->
<div id="[ID Main Container]"></div> <!-- Definition Main Container, all content html will been load here -->
$.runspa({
id: '[ID Main Container]',
defaultPage: 'Route Default',
title: 'Title Default'
});
$.runspa.route('[Route Hash]', {
title: 'Title Page',
path: 'client', /* Optional */
autoCreateRoute: true, /* Optional */
metaTag: { /* All Meta Tags HTML*/
'keywords': '...',
'description': '...'
},
css: [
{url: 'path/style1.css'},
{url: 'path/style2.css'},
],
scripts: [
{url: 'path/scripts1.js' /* async optional */},
{url: 'path/scripts2.js' /* async optional */}
],
beforeSend: function () {
/* Code */
},
success: function (e) {
/* Code */
},
error: function (e) {
/* Code */
}
}, function (page) {
/* Code */
});
$.runspa({
id: undefined,
language: 'en',
defaultPage: undefined,
pageError: undefined,
autoCreateRoute: false,
method: 'GET',
cache: false,
data: undefined,
dataType: 'html',
extension: undefined,
prefix: undefined,
classActive: 'active',
success: undefined,
beforeSend: undefined,
error: undefined,
loading: true,
loadingClass: undefined,
loadingLabel: 'Loading...',
loadingImage: '[Data Image Base64]'
});
$.runspa.get(name, [options, function]);
Example:
$.runspa.get('Route Hash', {
title: 'Description Page',
path: 'client', /* Optional */
autoCreateRoute: true, /* Optional */
metaTag: { /* All Meta Tags HTML*/
'keywords': '...',
'description': '...'
},
css: [
{url: 'path/style1.css'},
{url: 'path/style2.css'},
],
scripts: [
{url: 'path/scripts1.js' /* [async:true, defer:true] optional */},
{url: 'path/scripts2.js' /* [async:true, defer:true] optional */}
],
beforeSend: function () {
/* Code */
},
success: function (e) {
/* Code */
},
error: function (e) {
/* Code */
}
}, function (page) {
/* Code */
});
$.runspa.inject(options, [function]);
Examples:
$.runspa.inject({
css: [
{url: 'path/style1.css'},
{url: 'path/style2.css'},
],
scripts: [
{url: 'path/scripts1.js' /* [async:true, defer:true] optional */},
{url: 'path/scripts2.js' /* [async:true, defer:true] optional */}
]
});
$.runspa.inject({
css: [
{url: 'path/style1.css'},
{url: 'path/style2.css'},
]
});
$.runspa.inject({
scripts: [
{url: 'path/scripts1.js' /* [async:true, defer:true] optional */},
{url: 'path/scripts2.js' /* [async:true, defer:true] optional */}
]
});
$.runspa.inject({
css: [
{url: 'path/style1.css'},
{url: 'path/style2.css'},
],
scripts: [
{url: 'path/scripts1.js' /* [async:true, defer:true] optional */},
{url: 'path/scripts2.js' /* [async:true, defer:true] optional */}
]
}, function(){
// Your Code
});
Please post issues and feature request here Github issues
MIT © 2018 Carlos R F Júnior
FAQs
A simple jQuery Single Page Application Plugin
We found that runspa 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.