Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
First, install node and npm: http://nodejs.org/#download
Then
$ npm install spm -g
Get all compatible modules in the sea:
$ mkdir libs
$ cd libs
$ spm install all
Only get a specific module:
$ spm install jquery@1.7.2
For more details:
$ spm help install
Compress a module file:
$ spm build a.js
Compress and combine to one file with dependencies:
$ spm build a.js --combine
Compress and combine to one file with all dependencies:
$ spm build a.js --combine_all
Remove built files:
$ spm build --clear
You can define build-config.js
to specify more information:
build-config.js:
module.exports = {
"base_path": "/path/to/libs/",
"app_url": "http://test.com/js/app/",
"app_path": "/path/to/app/",
"loader_config": "path/to/init.js"
};
For all options, please call:
$ spm help build
Add this line:
. /usr/local/lib/node_modules/spm/bin/spm-autocompletion.bash
to your .bash_profile
can enable auto completion for spm.
You can use transport
to wrap custom modules:
$ cd path/to/modules
$ mkdir xxx
$ cp jquery/transport.js xxx/
$ vi xxx/transport.js # modify it
$ spm transport xxx/transport.js
To use spm from JavaScript, you'd do the following:
var spm = require('spm');
var build = new spm.Build(['a.js', 'b.js'], {
combine: true
});
build.run();
FAQs
Static Package Manager
The npm package spm receives a total of 4 weekly downloads. As such, spm popularity was classified as not popular.
We found that spm demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 8 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
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.