
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
less-openui5
Advanced tools
Build OpenUI5 themes with Less.js.
npm install less-openui5
var lessOpenUI5 = require('less-openui5');
lessOpenUI5.build('@var: #ffffff; .class { color: @var; float: left }', function(err, result) {
console.log(result.css); // => regular css
/*
.class {
color: #ffffff;
float: left;
}
*/
console.log(result.cssRtl); // => mirrored css for right-to-left support
/*
.class {
color: #ffffff;
float: right;
}
*/
console.log(result.variables); // => less variables with their values (only global ones)
/*
{ var: "#ffffff" }
*/
console.log(result.imports); // => paths to files imported via @import directives
/*
[]
*/
});
Required
Type: string
Input less content.
Type: boolean
Default: true
Create mirrored css for right-to-left support.
Type: array
of string
Root paths to use for import directives.
This option differs from the less compiler.paths
option.
It is useful if less files are located in separate folders but referenced as they would all be in one.
If rootPaths
are provided and a file can not be found, the compiler.paths
option will be used instead.
Note: parser.filename
has to be set to the path of the input
file in order to get this working.
rootPaths: [ './lib1', './lib2' ]
Folder structure
lib1
my
themes
foo
foo.less
lib2
my
themes
bar
bar.less
lib2/my/themes/bar/bar.less
@import "../foo/foo.less"; /* lib1/my/themes/foo/foo.less will be imported */
Type: object
Options for the less parser (less.Parser
).
Type object
Options for the less compiler (tree.toCss
).
Required
Type: function
Type: string
Regular css output.
Type: string
Mirrored css for right-to-left support (if rtl option was enabled).
Type: object
Key-value map of all global less variables (without @ prefix).
Type: array
Paths to files imported via import directives.
See CONTRIBUTING.md.
[Apache License 2.0](http: //www.apache.org/licenses/LICENSE-2.0) © 2014 SAP SE
FAQs
Build OpenUI5 themes with Less.js
The npm package less-openui5 receives a total of 128,076 weekly downloads. As such, less-openui5 popularity was classified as popular.
We found that less-openui5 demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 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
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.