Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
JavaScript and CSS bundler.
# Using npm
npm install --save rucksack
# Using yarn
yarn add rucksack
const Rucksack = require("rucksack")
// Create a new bundler
let bundler = new Rucksack({
aliases: {
"foo": `${__dirname}/data/bar/foo.js`
}
})
// Add remote url as resource
bundler.add("https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.js")
bundler.add(`${__dirname}/data/main.js`)
bundler.add(`${__dirname}/data/another-main.js`)
bundler.add(`${__dirname}/data/bar.css`)
bundler.add(`${__dirname}/data/main.css`)
//bundler.add({
// type: "css",
// url: "https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.8.0/styles/default.min.css",
// inline: true
//})
bundler.bundleCSS(`${__dirname}/test.css`)
// => info [Tuesday, November 28, 2017 06:53:48 AM] Bundling the styles.
// => warn [Tuesday, November 28, 2017 06:53:48 AM] Skipping remote @import of "https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.8.0/styles/default.min.css" as resource is not allowed.
// => @import url(https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.8.0/styles/default.min.css);strong{color:#000}strong{color:#ff0}body{background:#fff;-webkit-transform:translate(10px);transform:translate(10px)}
bundler.bundleJS(`${__dirname}/test.js`)
// => info [Tuesday, November 28, 2017 06:53:48 AM] Bundling the scripts.
// => (function e(t,n,r){...})
There are few ways to get help:
Ruckasck
Creates a new instance of Ruckasck
.
opts
: The Rucksack options._watchCSS(resPath)
Watch the CSS paths.
resPath
: The CSS resource path.addCSS(resPath, inline)
Adds a new CSS path.
resPath
: The CSS resource path to add.inline
: Whether to add the CSS content inline or not.bundleJS(output, cb)
Bundles the JS files.
output
: The output of the JS script.cb
: The callback function.bundleCSS(output, cb)
Bundles the CSS files.
output
: The output of the CSS script.cb
: The callback function.Have an idea? Found a bug? See how to contribute.
If you are using this library in one of your projects, add it in this list. :sparkles:
bloggify
bloggify-cli
bloggify-prebuilt
FAQs
JavaScript and CSS bundler.
The npm package rucksack receives a total of 4 weekly downloads. As such, rucksack popularity was classified as not popular.
We found that rucksack demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.