Research
Recent Trends in Malicious Packages Targeting Discord
The Socket research team breaks down a sampling of malicious packages that download and execute files, among other suspicious behaviors, targeting the popular Discord platform.
bananacss
Advanced tools
Readme
:banana: The Brazilian CSS superset.
Verify if you have node and npm installed.
$ npm install -g bananacss
$ npm install bananacss --save
Compile you .bnn file to .css
$ banana <input_path>
Watch for changes.
$ banana <input_path> -w
Output to dir when passing files.
$ banana <input_path> -o <out_path>
Show the project version.
$ banana --version
Show all available commands.
$ banana --help
Create a file called bananafile.json
in the directory where you will run the command $ banana
and configure as need.
{
"bnnSize" : true,
"bnnPosition" : true,
"bnnGradient" : true,
"bnnVariable" : true,
"bnnImport" : true,
"bnnAlign" : true,
"bnnWidth" : true,
"bnnHeight" : true,
"bnnCol" : true,
"bnnRow" : true,
"bnnBox" : true,
"bnnFunction" : true,
"compress" : false
}
All features have true
as default value, except the compress
.
const inputBananaCode = '.a {bnn-size: 50px;}';
// Features injection
const config = {};
config.bnnSize = true;
config.bnnPosition = true;
config.bnnGradient = true;
config.bnnVariable = true;
config.bnnImport = true;
config.bnnAlign = true;
config.bnnWidth = true;
config.bnnHeight = true;
config.bnnCol = true;
config.bnnRow = true;
config.bnnBox = true;
config.bnnFunction = true;
config.compress = true;
const Banana = require('banana')(config);
// Output the css
const output = Banana.render(inputBananaCode);
console.log(output); // .a {width: 50px; height: 50px;}
bnn-row
and bnn-col
.@import
syntax.View all features docs here.
Follow the Banana NodeJS style guide.
Validate the code style with ESLint:
$ npm run eslint
Generate code docs with JSDocs
$ npm run jsdocs
View code docs in out/index.html
Run the unit tests with mocha:
$ npm test
Calculate the coverage with Istanbul:
$ npm run cover
To keep better organization of releases we follow the Semantic Versioning 2.0.0 guidelines.
Find on our issues the next steps of the project ;)
Want to contribute? Follow these recommendations.
See Releases for detailed changelog.
FAQs
The Brazilian CSS superset.
We found that bananacss 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
The Socket research team breaks down a sampling of malicious packages that download and execute files, among other suspicious behaviors, targeting the popular Discord platform.
Security News
Socket CEO Feross Aboukhadijeh joins a16z partners to discuss how modern, sophisticated supply chain attacks require AI-driven defenses and explore the challenges and solutions in leveraging AI for threat detection early in the development life cycle.
Security News
NIST's new AI Risk Management Framework aims to enhance the security and reliability of generative AI systems and address the unique challenges of malicious AI exploits.