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.
This is the editor component of Stratus Editor.
Be sure you have stratus-bundle installed, along with any syntaxes you plan on using.
To build the standalone editor:
$ npm install fractus -g
# Pass the languages you want to include,
# and the paths to the JS and CSS files to write.
$ fractus -l Ruby,JavaScript -j ./fractus.js -c ./fractus.css
Then, include the JavaScript and CSS files that it writes in your HTML.
This will turn $("#some-element")
into an editor:
jQuery(function($) {
var fractus = require("fractus");
var editor = fractus($("#some-element"),
{ text: "some\ntext"
, syntax: window.fractusBundles["Ruby"]
});
});
For Fractus' API, see the Stratus documentation.
Get the editor's text:
editor.text();
// => "some\ntext"
Usage: fractus.coffee [options]
Options:
-h, --help output usage information
-V, --version output the version number
-l, --langs <langs> Bundle the comma-separated syntaxes (required).
-j, --js <file> The JavaScript output file.
-c, --css <file> The CSS output file.
-t, --theme <theme> The theme name.
-q, --jquery Dont include the jQuery source
See LICENSE.
FAQs
a browser-based editor
The npm package fractus receives a total of 2 weekly downloads. As such, fractus popularity was classified as not popular.
We found that fractus 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
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.