![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
vox-core-clr
Advanced tools
NOTICIA: vox-core-clr es parte de vox-core, y por tanto se ejecuta sobre vox-core. Si usted ya tiene instalado vox-core no descargue este módulo, puesto que vox-core ya tiene incluido este módulo. Si desea usar este módulo sin instalar vox-core por favor instale voxnode-core si está disponible
VoxSoftware está creando módulos independientes de cada parte de vox-core utilizando el prefijo voxnode- en lugar de usar vox-core-. Por lo tanto si desea usar alguno de los submódulos presentes en vox-core, de manera independiente revise utilizando este prefijo.
vox-core-clr ==> voxnode-clr
vox-core-clr permite usar Tipos y Ensamblados .NET desde nodejs. vox-core-clr tiene las siguientes ventajas sobre edge.js
vox-core-clr tiene ciertas características más:
Debe instalar .NET Framework 4.0 en Windows (en versiones recientes viene preinstalado), o Mono en sistemas Unix
Incluye las siguientes clases:
Este ejemplo usa sintaxis ES6 y async/await. Se puede usar un transpilador como babel, o ejecutar directamente con vox-core creando un archivo con extensión .es6
var clr= new core.VW.Clr.Manager()
var test= async function(){
// Esta parte se demora un poco mientras se carga por completo el canal de comunicación
await clr.loadAssembly("System.Xml")
// La primera vez se demora un poco más porque carga los miembros de los tipos
var d= new Date()
await testxml()
console.info("Time: ", new Date()-d)
var d= new Date()
await testxml()
console.info("Time: ", new Date()-d)
var d= new Date()
await testxmlScope()
console.info("Time: ", new Date()-d)
var d= new Date()
await testxmlScope()
console.info("Time: ", new Date()-d)
await clr.close()
process.exit(0)
}
var testxml= async function(){
try{
var Xml= {}
// Cargar los tipos ...
Xml.Document= clr.get("System.Xml.XmlDocument")
await Xml.Document.loadMembers()
var doc= await Xml.Document.create()
var root= await doc.CreateXmlDeclaration("1.0","utf8","yes")
await doc.AppendChild(root)
var elemento1= await doc.CreateElement("element1")
var elemento2= await doc.CreateElement("element2")
await elemento1.AppendChild(elemento2)
await elemento2.setInnerText("Hola mundo!")
await doc.AppendChild(elemento1)
console.info(await doc.getOuterXml())
var tasks=[root.dispose(), elemento1.dispose(),
elemento2.dispose(), doc.dispose()]
await core.VW.Task.waitMany(tasks)
}
catch(er){
console.error(er)
}
}
var testxmlScope= async function(){
try{
var Xml= {}
// Cargar los tipos ...
var scope= clr.beginScope()
Xml.Document= clr.get("System.Xml.XmlDocument")
await Xml.Document.loadMembers()
var doc= await scope(Xml.Document).create()
var root= await scope(doc).CreateXmlDeclaration("1.0","utf8","yes")
await doc.AppendChild(root)
var elemento1= await doc.CreateElement("element1")
var elemento2= await doc.CreateElement("element2")
await elemento1.AppendChild(elemento2)
await elemento2.setInnerText("Hola mundo!")
await doc.AppendChild(elemento1)
console.info(await doc.getOuterXml())
await scope.end()
}
catch(er){
console.error(er)
}
}
test()
FAQs
Utilice ensamblados y compile código .NET (Framework 4 , Mono)
We found that vox-core-clr 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.