
Research
Security News
Malicious PyPI Package Exploits Deezer API for Coordinated Music Piracy
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
JShelf is a react project auto format tool, you can use it to format your react project structure easily.
features:
you can install jshelf by the npm recommend:
$ npm install jshelf --save-dev
jshelf.json
for your project, for example:{
"root": "./src",
"ignore": ["./src/app/", "./src/lib/", "./src/util/"],
"rules": {
"directory": {
"case": "kebab"
},
"files": [
{
"test": "\\.js$|\\.jsx$",
"case": "camel",
"ignore": [
"index",
"logic",
"store",
"actions",
"util"
]
},
{
"test": "\\.less$",
"case": "mix",
"ignore": []
}
],
"default": {
"case": "mix",
"ignore": []
}
},
"words": [
"these",
"are",
"words",
"used",
"in",
"your",
"file",
"names",
]
}
$ jshelf
field name | type | required | comment |
---|---|---|---|
root | string | true | the root directory to be formated |
ignore | array | false | the directorys you don't want to be formated but included in the root |
rules | object | true | the rules according to which to format |
rules.directory | object | false | directory rules<rule item> |
rules.files | array | false | files rules<rule item> |
rules.default | object | true | default rules<rule item> |
words | array | true | the words appeard in your file or directory name |
field name | type | required | comment |
---|---|---|---|
case | string | true | format case selectable: camel, kebab, mix, snack |
test | string | true | only file rules has this option, regular expression string to match the file |
ignore | array | false | the file's name you don't want to format |
now you can format your file or directory name use one of the following cases:
case | example | words | formated |
---|---|---|---|
kebab | 'kebabcase' | ['kebab', 'case'] | kebab-case |
snake | 'snakecase' | ['snake', 'case'] | snake_case |
camel | 'camelcase' | ['camel', 'case'] | CamelCase |
mix | 'mixcase' | ['mix', 'case'] | mixCase |
the words maintain a dictionary to format your project file and directory names, jshelf will spit your file or directory name according these words. before use jshelf, you must scan your project and find all the words you used in your directory and files, exclude ignored files.
for example, now you have a file named jshelfformatfile.js
, if you want to formated it to jshelfFormatFile.js
, your words config should be ['jshelf', 'format', 'file']
and the case is mix
.
FAQs
react project format tool
The npm package jshelf receives a total of 2 weekly downloads. As such, jshelf popularity was classified as not popular.
We found that jshelf 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
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.
Security News
Newly introduced telemetry in devenv 1.4 sparked a backlash over privacy concerns, leading to the removal of its AI-powered feature after strong community pushback.