Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
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.
The npm package bananacss receives a total of 7 weekly downloads. As such, bananacss popularity was classified as not popular.
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.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.