🚀 Big News:Socket Has Acquired Secure Annex.Learn More →
Socket
Book a DemoSign in
Socket

assembly-source

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

assembly-source

Create or change .NET assembly attributes in C# and JScript source code

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

assembly-source

Create or change .NET assembly attributes in C# and JScript source code.

npm status node Travis build status

Usage

const Assembly = require('assembly-source')
const fs = require('fs')

// Construct from source code
const assembly = Assembly(fs.readFileSync('./AssemblyInfo.cs'))

// Read attributes (strings, booleans and numbers)
console.log(assembly.get('AssemblyVersion'))

// Modify and add attributes
assembly.set('AssemblyVersion', '1.2.3')
assembly.set('ComVisible', true)

// Then save
fs.writeFileSync('./AssemblyInfo.cs', assembly.toSource())

Or create metadata from scratch for JScript:

const assembly = Assembly({ language: 'jscript' })

assembly.set('AssemblyFileVersion', '1.2.3.4')
assembly.set('AssemblyInformationalVersion', '1.2.3')

const js = assembly.toSource({ preamble: true })

Install

With npm do:

npm install assembly-source

License

MIT © Vincent Weevers

Keywords

assembly

FAQs

Package last updated on 10 Oct 2020

Did you know?

Socket

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.

Install

Related posts