
Company News
/Security News
Socket Selected for OpenAI's Cybersecurity Grant Program
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.
ts-code-layout
Advanced tools
ts-code-layout: Rearranges elements in typescript code.
ts-code-layout -i input-directory -o output-directory [-s] sources ...
Rearranges code elements in the top level of typescript source code. The layout is specified in "ts-code-layout.json". The file is searched in the current directory. If not found, the default configuration in the installation directory is used.
npm install ts-code-layout
-i, --input-directory string Input-directory to read scripts from.
-o, --output-directory string Output-directory to write scripts to.
-s, --scripts string[] Scripts to be processed.
-p, --pause Pause before closing the app.
-w, --write-options Writes options to "options.txt"
The elements are sorted by following traits:
Possible values:
In all traits (except "name") the value "null" can also be used. A value of "null" means that the values of the corresponding trait do not apply to the element.
When comparing the elements, the order in which the traits are specified in the configuration is taken into account.
{
"comparisons":
[
{ "kind": ["Header", "Import", "TypeImport", "Enumeration", "Type", "Interface", "Variable", "Class", "Function", null] },
{ "transfer": [ "IsExported", null ] },
{ "persistance": [ "IsConstant", null ] },
{ "pattern": ["const option[a-zA-Z]+ = \"[-a-zA-z]+\";", null], "ignoreIfSingleLine": false },
{ "name": [], "ignoreIfSingleLine": true }
]
}
FAQs
Changes the layout of typescript files.
The npm package ts-code-layout receives a total of 1 weekly downloads. As such, ts-code-layout popularity was classified as not popular.
We found that ts-code-layout 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.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.

Security News
Socket CEO Feross Aboukhadijeh joins 10 Minutes or Less, a podcast by Ali Rohde, to discuss the recent surge in open source supply chain attacks.

Research
/Security News
Campaign of 108 extensions harvests identities, steals sessions, and adds backdoors to browsers, all tied to the same C2 infrastructure.