Security News
RubyGems.org Adds New Maintainer Role
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.
# in your source code, declare the files you depend on:
#depend "some_js_file"
#depend "or_some_coffee_file"
#depend "even_coco_is_supported"
#depend "some/path/and_livescript"
# leave off the top-level function wrapper
#depend "vendor/Audiolet" bare
# some code using the files here.
In JavaScript, the //depend
directive is used instead of #depend
.
Be sure to install the languages you wish to use with npm install -g
.
When installed with npm install jspackage -g
, a command line tool called
jspackage
will be made available.
Usage: jspackage input_file output_file [options]
Available options:
-h, --help shows this help section
-w, --watch watch source files and recompile when any change
-l, --lib PATH add an additional search directory for source files
compile.extensions
object.
src/jspackage.coffee
and submit a pull
request.--watch
mode which automatically recompiles source files when
they change.--lib
.http = require 'http'
{compile} = require 'jspackage'
server = http.createServer (req, res) ->
res.writeHead(200)
compile {mainfile}, (err, compiled_code) ->
if err
res.end 'throw unescape("' + escape(err.toString()) + '");'
else
res.end compiled_code
server.listen(8080)
To add out-of-the-box support for another language, add it to the bottom of
src/jspackage.coffee
and submit a pull request.
To add support by wrapping the code, add an entry to the extensions
object:
{extensions} = require 'jspackage'
extensions['.lua'] =
require: 'npm-lua-package'
compile: (code, options) ->
require('npm-lua-package').compile(code, bare: options.bare)
depend_re: /^--depend "(.+)"( bare)?$/gm
To build:
npm run-script build
To build and watch:
npm run-script watch
To run the tests:
npm test
Licensed under the MIT license.
FAQs
build tool which adds client-side import syntax
The npm package jspackage receives a total of 0 weekly downloads. As such, jspackage popularity was classified as not popular.
We found that jspackage 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
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.
Security News
Research
Socket's threat research team has detected five malicious npm packages targeting Roblox developers, deploying malware to steal credentials and personal data.