code-languages 1.4.3 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -1
- package/dist/detect.cjs +90 -0
- package/dist/detect.cjs.map +1 -1
- package/dist/detect.js +90 -0
- package/dist/detect.js.map +1 -1
- package/dist/index.cjs +93 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +81 -0
- package/dist/index.d.ts +81 -0
- package/dist/index.js +91 -1
- package/dist/index.js.map +1 -1
- package/dist/languages/assembly.cjs +34 -0
- package/dist/languages/assembly.cjs.map +1 -0
- package/dist/languages/assembly.d.cts +29 -0
- package/dist/languages/assembly.d.ts +29 -0
- package/dist/languages/assembly.js +32 -0
- package/dist/languages/assembly.js.map +1 -0
- package/dist/languages/coffeescript.cjs +34 -0
- package/dist/languages/coffeescript.cjs.map +1 -0
- package/dist/languages/coffeescript.d.cts +29 -0
- package/dist/languages/coffeescript.d.ts +29 -0
- package/dist/languages/coffeescript.js +32 -0
- package/dist/languages/coffeescript.js.map +1 -0
- package/dist/languages/powershell.cjs +34 -0
- package/dist/languages/powershell.cjs.map +1 -0
- package/dist/languages/powershell.d.cts +29 -0
- package/dist/languages/powershell.d.ts +29 -0
- package/dist/languages/powershell.js +32 -0
- package/dist/languages/powershell.js.map +1 -0
- package/package.json +16 -1
package/dist/index.d.cts
CHANGED
|
@@ -2,8 +2,10 @@ export { detectLanguage, detectLanguages } from './detect.cjs';
|
|
|
2
2
|
export { localizeLanguage } from './i18n.cjs';
|
|
3
3
|
export { L as Language, a as LanguageContent, b as LanguageTooling, c as LanguageTranslations, d as Locale, e as LocalizedLanguage } from './types-CZDaRR4t.cjs';
|
|
4
4
|
export { astro } from './languages/astro.cjs';
|
|
5
|
+
export { assembly } from './languages/assembly.cjs';
|
|
5
6
|
export { bash } from './languages/bash.cjs';
|
|
6
7
|
export { c } from './languages/c.cjs';
|
|
8
|
+
export { coffeescript } from './languages/coffeescript.cjs';
|
|
7
9
|
export { cobol } from './languages/cobol.cjs';
|
|
8
10
|
export { csharp } from './languages/csharp.cjs';
|
|
9
11
|
export { cpp } from './languages/cpp.cjs';
|
|
@@ -24,6 +26,7 @@ export { markdown } from './languages/markdown.cjs';
|
|
|
24
26
|
export { nginx } from './languages/nginx.cjs';
|
|
25
27
|
export { objectiveC } from './languages/objective-c.cjs';
|
|
26
28
|
export { php } from './languages/php.cjs';
|
|
29
|
+
export { powershell } from './languages/powershell.cjs';
|
|
27
30
|
export { python } from './languages/python.cjs';
|
|
28
31
|
export { rust } from './languages/rust.cjs';
|
|
29
32
|
export { scss } from './languages/scss.cjs';
|
|
@@ -117,6 +120,58 @@ declare const languages: readonly [{
|
|
|
117
120
|
longDescription: string;
|
|
118
121
|
};
|
|
119
122
|
};
|
|
123
|
+
}, {
|
|
124
|
+
slug: string;
|
|
125
|
+
publishedDate: string;
|
|
126
|
+
extensions: string[];
|
|
127
|
+
author: string;
|
|
128
|
+
website: string;
|
|
129
|
+
paradigms: string[];
|
|
130
|
+
tooling: {
|
|
131
|
+
runtimes: string[];
|
|
132
|
+
packageManagers: string[];
|
|
133
|
+
ecosystems: string[];
|
|
134
|
+
};
|
|
135
|
+
version: string;
|
|
136
|
+
logo: string;
|
|
137
|
+
i18n: {
|
|
138
|
+
en: {
|
|
139
|
+
name: string;
|
|
140
|
+
description: string;
|
|
141
|
+
longDescription: string;
|
|
142
|
+
};
|
|
143
|
+
es: {
|
|
144
|
+
name: string;
|
|
145
|
+
description: string;
|
|
146
|
+
longDescription: string;
|
|
147
|
+
};
|
|
148
|
+
};
|
|
149
|
+
}, {
|
|
150
|
+
slug: string;
|
|
151
|
+
publishedDate: string;
|
|
152
|
+
extensions: string[];
|
|
153
|
+
author: string;
|
|
154
|
+
website: string;
|
|
155
|
+
paradigms: string[];
|
|
156
|
+
tooling: {
|
|
157
|
+
runtimes: string[];
|
|
158
|
+
packageManagers: string[];
|
|
159
|
+
ecosystems: string[];
|
|
160
|
+
};
|
|
161
|
+
version: string;
|
|
162
|
+
logo: string;
|
|
163
|
+
i18n: {
|
|
164
|
+
en: {
|
|
165
|
+
name: string;
|
|
166
|
+
description: string;
|
|
167
|
+
longDescription: string;
|
|
168
|
+
};
|
|
169
|
+
es: {
|
|
170
|
+
name: string;
|
|
171
|
+
description: string;
|
|
172
|
+
longDescription: string;
|
|
173
|
+
};
|
|
174
|
+
};
|
|
120
175
|
}, {
|
|
121
176
|
slug: string;
|
|
122
177
|
publishedDate: string;
|
|
@@ -691,6 +746,32 @@ declare const languages: readonly [{
|
|
|
691
746
|
longDescription: string;
|
|
692
747
|
};
|
|
693
748
|
};
|
|
749
|
+
}, {
|
|
750
|
+
slug: string;
|
|
751
|
+
publishedDate: string;
|
|
752
|
+
extensions: string[];
|
|
753
|
+
author: string;
|
|
754
|
+
website: string;
|
|
755
|
+
paradigms: string[];
|
|
756
|
+
tooling: {
|
|
757
|
+
runtimes: string[];
|
|
758
|
+
packageManagers: string[];
|
|
759
|
+
ecosystems: string[];
|
|
760
|
+
};
|
|
761
|
+
version: string;
|
|
762
|
+
logo: string;
|
|
763
|
+
i18n: {
|
|
764
|
+
en: {
|
|
765
|
+
name: string;
|
|
766
|
+
description: string;
|
|
767
|
+
longDescription: string;
|
|
768
|
+
};
|
|
769
|
+
es: {
|
|
770
|
+
name: string;
|
|
771
|
+
description: string;
|
|
772
|
+
longDescription: string;
|
|
773
|
+
};
|
|
774
|
+
};
|
|
694
775
|
}, {
|
|
695
776
|
slug: string;
|
|
696
777
|
publishedDate: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -2,8 +2,10 @@ export { detectLanguage, detectLanguages } from './detect.js';
|
|
|
2
2
|
export { localizeLanguage } from './i18n.js';
|
|
3
3
|
export { L as Language, a as LanguageContent, b as LanguageTooling, c as LanguageTranslations, d as Locale, e as LocalizedLanguage } from './types-CZDaRR4t.js';
|
|
4
4
|
export { astro } from './languages/astro.js';
|
|
5
|
+
export { assembly } from './languages/assembly.js';
|
|
5
6
|
export { bash } from './languages/bash.js';
|
|
6
7
|
export { c } from './languages/c.js';
|
|
8
|
+
export { coffeescript } from './languages/coffeescript.js';
|
|
7
9
|
export { cobol } from './languages/cobol.js';
|
|
8
10
|
export { csharp } from './languages/csharp.js';
|
|
9
11
|
export { cpp } from './languages/cpp.js';
|
|
@@ -24,6 +26,7 @@ export { markdown } from './languages/markdown.js';
|
|
|
24
26
|
export { nginx } from './languages/nginx.js';
|
|
25
27
|
export { objectiveC } from './languages/objective-c.js';
|
|
26
28
|
export { php } from './languages/php.js';
|
|
29
|
+
export { powershell } from './languages/powershell.js';
|
|
27
30
|
export { python } from './languages/python.js';
|
|
28
31
|
export { rust } from './languages/rust.js';
|
|
29
32
|
export { scss } from './languages/scss.js';
|
|
@@ -117,6 +120,58 @@ declare const languages: readonly [{
|
|
|
117
120
|
longDescription: string;
|
|
118
121
|
};
|
|
119
122
|
};
|
|
123
|
+
}, {
|
|
124
|
+
slug: string;
|
|
125
|
+
publishedDate: string;
|
|
126
|
+
extensions: string[];
|
|
127
|
+
author: string;
|
|
128
|
+
website: string;
|
|
129
|
+
paradigms: string[];
|
|
130
|
+
tooling: {
|
|
131
|
+
runtimes: string[];
|
|
132
|
+
packageManagers: string[];
|
|
133
|
+
ecosystems: string[];
|
|
134
|
+
};
|
|
135
|
+
version: string;
|
|
136
|
+
logo: string;
|
|
137
|
+
i18n: {
|
|
138
|
+
en: {
|
|
139
|
+
name: string;
|
|
140
|
+
description: string;
|
|
141
|
+
longDescription: string;
|
|
142
|
+
};
|
|
143
|
+
es: {
|
|
144
|
+
name: string;
|
|
145
|
+
description: string;
|
|
146
|
+
longDescription: string;
|
|
147
|
+
};
|
|
148
|
+
};
|
|
149
|
+
}, {
|
|
150
|
+
slug: string;
|
|
151
|
+
publishedDate: string;
|
|
152
|
+
extensions: string[];
|
|
153
|
+
author: string;
|
|
154
|
+
website: string;
|
|
155
|
+
paradigms: string[];
|
|
156
|
+
tooling: {
|
|
157
|
+
runtimes: string[];
|
|
158
|
+
packageManagers: string[];
|
|
159
|
+
ecosystems: string[];
|
|
160
|
+
};
|
|
161
|
+
version: string;
|
|
162
|
+
logo: string;
|
|
163
|
+
i18n: {
|
|
164
|
+
en: {
|
|
165
|
+
name: string;
|
|
166
|
+
description: string;
|
|
167
|
+
longDescription: string;
|
|
168
|
+
};
|
|
169
|
+
es: {
|
|
170
|
+
name: string;
|
|
171
|
+
description: string;
|
|
172
|
+
longDescription: string;
|
|
173
|
+
};
|
|
174
|
+
};
|
|
120
175
|
}, {
|
|
121
176
|
slug: string;
|
|
122
177
|
publishedDate: string;
|
|
@@ -691,6 +746,32 @@ declare const languages: readonly [{
|
|
|
691
746
|
longDescription: string;
|
|
692
747
|
};
|
|
693
748
|
};
|
|
749
|
+
}, {
|
|
750
|
+
slug: string;
|
|
751
|
+
publishedDate: string;
|
|
752
|
+
extensions: string[];
|
|
753
|
+
author: string;
|
|
754
|
+
website: string;
|
|
755
|
+
paradigms: string[];
|
|
756
|
+
tooling: {
|
|
757
|
+
runtimes: string[];
|
|
758
|
+
packageManagers: string[];
|
|
759
|
+
ecosystems: string[];
|
|
760
|
+
};
|
|
761
|
+
version: string;
|
|
762
|
+
logo: string;
|
|
763
|
+
i18n: {
|
|
764
|
+
en: {
|
|
765
|
+
name: string;
|
|
766
|
+
description: string;
|
|
767
|
+
longDescription: string;
|
|
768
|
+
};
|
|
769
|
+
es: {
|
|
770
|
+
name: string;
|
|
771
|
+
description: string;
|
|
772
|
+
longDescription: string;
|
|
773
|
+
};
|
|
774
|
+
};
|
|
694
775
|
}, {
|
|
695
776
|
slug: string;
|
|
696
777
|
publishedDate: string;
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,32 @@
|
|
|
1
|
+
// src/languages/assembly.ts
|
|
2
|
+
var assembly = {
|
|
3
|
+
slug: "assembly",
|
|
4
|
+
publishedDate: "1949-01-01",
|
|
5
|
+
extensions: [".asm", ".s", ".S", ".inc"],
|
|
6
|
+
author: "Machine architecture vendors and assembler implementers",
|
|
7
|
+
website: "https://en.wikipedia.org/wiki/Assembly_language",
|
|
8
|
+
paradigms: ["imperative", "low-level", "procedural"],
|
|
9
|
+
tooling: {
|
|
10
|
+
runtimes: ["Native"],
|
|
11
|
+
packageManagers: ["APT", "DNF", "Pacman", "Homebrew"],
|
|
12
|
+
ecosystems: ["Systems", "Embedded", "Reverse Engineering"]
|
|
13
|
+
},
|
|
14
|
+
version: "Architecture-specific",
|
|
15
|
+
logo: "https://cdn.simpleicons.org/assemblyscript/007AAC",
|
|
16
|
+
i18n: {
|
|
17
|
+
en: {
|
|
18
|
+
name: "Assembly",
|
|
19
|
+
description: "A family of low-level languages that map closely to machine instructions for specific CPU architectures.",
|
|
20
|
+
longDescription: "Assembly language represents processor instructions, registers, memory addressing modes, labels, directives, and macros using symbolic text that is assembled into machine code.\n\nIt is used in operating systems, embedded firmware, bootloaders, drivers, reverse engineering, performance-critical routines, and educational material where direct control over hardware and instructions matters."
|
|
21
|
+
},
|
|
22
|
+
es: {
|
|
23
|
+
name: "Assembly",
|
|
24
|
+
description: "Una familia de lenguajes de bajo nivel cercana a instrucciones de maquina para arquitecturas especificas.",
|
|
25
|
+
longDescription: "Assembly representa instrucciones del procesador, registros, modos de direccionamiento de memoria, etiquetas, directivas y macros usando texto simbolico que se ensambla en codigo maquina.\n\nSe usa en sistemas operativos, firmware embebido, bootloaders, drivers, ingenieria inversa, rutinas criticas de rendimiento y material educativo donde importa el control directo del hardware y las instrucciones."
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
|
|
1
30
|
// src/languages/astro.ts
|
|
2
31
|
var astro = {
|
|
3
32
|
slug: "astro",
|
|
@@ -113,6 +142,35 @@ var cobol = {
|
|
|
113
142
|
}
|
|
114
143
|
};
|
|
115
144
|
|
|
145
|
+
// src/languages/coffeescript.ts
|
|
146
|
+
var coffeescript = {
|
|
147
|
+
slug: "coffeescript",
|
|
148
|
+
publishedDate: "2009-12-25",
|
|
149
|
+
extensions: [".coffee", ".litcoffee", ".cson"],
|
|
150
|
+
author: "Jeremy Ashkenas",
|
|
151
|
+
website: "https://coffeescript.org",
|
|
152
|
+
paradigms: ["functional", "imperative", "object-oriented", "scripting"],
|
|
153
|
+
tooling: {
|
|
154
|
+
runtimes: ["Browser", "Node.js"],
|
|
155
|
+
packageManagers: ["npm", "pnpm", "Yarn"],
|
|
156
|
+
ecosystems: ["JavaScript", "Web", "Node.js"]
|
|
157
|
+
},
|
|
158
|
+
version: "2.7.0",
|
|
159
|
+
logo: "https://cdn.simpleicons.org/coffeescript/2F2625",
|
|
160
|
+
i18n: {
|
|
161
|
+
en: {
|
|
162
|
+
name: "CoffeeScript",
|
|
163
|
+
description: "A small language that compiles to JavaScript with concise syntax inspired by Ruby and Python.",
|
|
164
|
+
longDescription: "CoffeeScript adds a concise syntax over JavaScript with significant whitespace, function shortcuts, comprehensions, destructuring, classes, string interpolation, and other expressive conveniences.\n\nIt was widely used in earlier JavaScript application stacks and remains relevant in legacy projects, build pipelines, and codebases that prefer its compact syntax while targeting standard JavaScript."
|
|
165
|
+
},
|
|
166
|
+
es: {
|
|
167
|
+
name: "CoffeeScript",
|
|
168
|
+
description: "Un lenguaje pequeno que compila a JavaScript con sintaxis concisa inspirada en Ruby y Python.",
|
|
169
|
+
longDescription: "CoffeeScript agrega una sintaxis concisa sobre JavaScript con indentacion significativa, atajos para funciones, comprehensions, destructuring, clases, interpolacion de cadenas y otras comodidades expresivas.\n\nFue muy usado en stacks anteriores de aplicaciones JavaScript y sigue siendo relevante en proyectos legacy, pipelines de build y codebases que prefieren su sintaxis compacta mientras generan JavaScript estandar."
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
};
|
|
173
|
+
|
|
116
174
|
// src/languages/cpp.ts
|
|
117
175
|
var cpp = {
|
|
118
176
|
slug: "cpp",
|
|
@@ -641,6 +699,35 @@ var php = {
|
|
|
641
699
|
}
|
|
642
700
|
};
|
|
643
701
|
|
|
702
|
+
// src/languages/powershell.ts
|
|
703
|
+
var powershell = {
|
|
704
|
+
slug: "powershell",
|
|
705
|
+
publishedDate: "2006-11-14",
|
|
706
|
+
extensions: [".ps1", ".psm1", ".psd1", ".ps1xml"],
|
|
707
|
+
author: "Microsoft",
|
|
708
|
+
website: "https://learn.microsoft.com/powershell/",
|
|
709
|
+
paradigms: ["command", "imperative", "object-oriented", "scripting", "shell"],
|
|
710
|
+
tooling: {
|
|
711
|
+
runtimes: ["PowerShell", "Windows PowerShell", ".NET"],
|
|
712
|
+
packageManagers: ["PowerShell Gallery", "PSResourceGet", "PowerShellGet"],
|
|
713
|
+
ecosystems: ["Windows", "Azure", "DevOps", "Automation"]
|
|
714
|
+
},
|
|
715
|
+
version: "7.6.1",
|
|
716
|
+
logo: "https://upload.wikimedia.org/wikipedia/commons/2/2f/PowerShell_5.0_icon.png",
|
|
717
|
+
i18n: {
|
|
718
|
+
en: {
|
|
719
|
+
name: "PowerShell",
|
|
720
|
+
description: "A cross-platform command shell and scripting language for automation and system administration.",
|
|
721
|
+
longDescription: "PowerShell combines a command-line shell, scripting language, object pipeline, module system, providers, remoting, and deep integration with .NET and operating system management APIs.\n\nIt is widely used for Windows administration, Azure automation, DevOps workflows, configuration management, cloud operations, and repeatable infrastructure tasks across Windows, Linux, and macOS."
|
|
722
|
+
},
|
|
723
|
+
es: {
|
|
724
|
+
name: "PowerShell",
|
|
725
|
+
description: "Un shell de comandos y lenguaje de scripting multiplataforma para automatizacion y administracion de sistemas.",
|
|
726
|
+
longDescription: "PowerShell combina un shell de linea de comandos, lenguaje de scripting, pipeline de objetos, sistema de modulos, proveedores, remoting e integracion profunda con .NET y APIs de administracion del sistema operativo.\n\nSe usa ampliamente para administracion de Windows, automatizacion de Azure, flujos DevOps, gestion de configuracion, operaciones cloud y tareas repetibles de infraestructura en Windows, Linux y macOS."
|
|
727
|
+
}
|
|
728
|
+
}
|
|
729
|
+
};
|
|
730
|
+
|
|
644
731
|
// src/languages/python.ts
|
|
645
732
|
var python = {
|
|
646
733
|
slug: "python",
|
|
@@ -1005,8 +1092,10 @@ var zsh = {
|
|
|
1005
1092
|
// src/catalog.ts
|
|
1006
1093
|
var languages = [
|
|
1007
1094
|
astro,
|
|
1095
|
+
assembly,
|
|
1008
1096
|
bash,
|
|
1009
1097
|
c,
|
|
1098
|
+
coffeescript,
|
|
1010
1099
|
cobol,
|
|
1011
1100
|
cpp,
|
|
1012
1101
|
csharp,
|
|
@@ -1027,6 +1116,7 @@ var languages = [
|
|
|
1027
1116
|
nginx,
|
|
1028
1117
|
objectiveC,
|
|
1029
1118
|
php,
|
|
1119
|
+
powershell,
|
|
1030
1120
|
python,
|
|
1031
1121
|
rust,
|
|
1032
1122
|
scss,
|
|
@@ -1089,6 +1179,6 @@ var resolveLocale = (translations, locale) => {
|
|
|
1089
1179
|
return "en";
|
|
1090
1180
|
};
|
|
1091
1181
|
|
|
1092
|
-
export { astro, bash, c, cobol, cpp, csharp, css, dart, detectLanguage, detectLanguages, dockerfile, go, graphql, groovy, html, java, javascript, json, kotlin, languages, less, localizeLanguage, makefile, markdown, nginx, objectiveC, php, python, rust, scss, sql, svg, swift, typescript, visualBasic, vue, webassembly, xml, yaml, zsh };
|
|
1182
|
+
export { assembly, astro, bash, c, cobol, coffeescript, cpp, csharp, css, dart, detectLanguage, detectLanguages, dockerfile, go, graphql, groovy, html, java, javascript, json, kotlin, languages, less, localizeLanguage, makefile, markdown, nginx, objectiveC, php, powershell, python, rust, scss, sql, svg, swift, typescript, visualBasic, vue, webassembly, xml, yaml, zsh };
|
|
1093
1183
|
//# sourceMappingURL=index.js.map
|
|
1094
1184
|
//# sourceMappingURL=index.js.map
|