![Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility](https://cdn.sanity.io/images/cgdhsj6q/production/97774ea8c88cc8f4bed2766c31994ebc38116948-1664x1366.png?w=400&fit=max&auto=format)
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
brave-mouse
Advanced tools
Validate your code against your EditorConfig.
Install brave-mouse using:
$ npm install brave-mouse -g
Validate files like this:
$ brave-mouse .travis.yml README.md package.json
brave-mouse automatically uses the appropiate .editorconfig
.
brave-mouse will exit abruptly (i.e. subsequent files won’t be processed) with an exit code of 1
if it encounters an error such as being unable to read a file.
brave-mouse will exit with an exit code of 2
if all files could be processed but not all files are valid according to your .editorconfig
.
If all files could be processed successfully and are valid, brave-mouse exits with an exit code of 0
.
Install brave-mouse using:
$ npm install brave-mouse
Use it like this:
var braveMouse = require('brave-mouse');
braveMouse.validate('your-file.js', function(err, results) {
// `err` will only be set for actual errors, e.g. it will
// not be set if your file isn’t valid.
if(err) throw err;
if(results === true) {
// Your file is valid
} else {
console.log(results);
// {
// "indent_style": {
// "expected": "tab"
// "is": "space"
// }
// }
}
});
See EditorConfig’s wiki for a complete list of properties.
brave-mouse currently supports validating the following properties:
indent_style
indent_size
end_of_line
(only lf
and crlf
are supported)trim_trailing_whitespace
insert_final_newline
max_line_length
tab_width
can’t be validated as it only applies to editors.
First, install all dependencies:
$ npm install -g grunt-cli
$ npm install
Then run the tests:
$ grunt test
See CHANGELOG.md.
brave-mouse is licensed under the BSD 2-clause license, subject to additional terms. See LICENSE for the full license text.
v0.4.0 (2015-07-26)
insert_final_newline
.max_line_length
.FAQs
Validate your code against your EditorConfig.
The npm package brave-mouse receives a total of 1 weekly downloads. As such, brave-mouse popularity was classified as not popular.
We found that brave-mouse 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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.