
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
norwegian-assets-ng
Advanced tools
Angular assets for Norwegian ✈️
Component library and project base to facilitate setup of new Norwegian projects. The library contains common building blocks for Norwegian sites and services. Like buttons, destination search, calendars and so on.
In order to use components in your project, you have to install norwegian-assets-ng
as a dependency of you project.
npm i norwegian-assets-ng
When it's in there, you can start importing the stuff you need. Like this 👇
app.module.ts
import { ButtonModule } from 'norwegian-assets-ng'
@NgModule({
declarations: [AppComponent],
imports: [
BrowserModule,
ButtonModule,
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
app.component.html
<nas-button title="hipp hopp ostepop"></nas-button>
A working [but minimal] example project using norwegian-assets-ng
can be found in /examples
.
The SCSS files for each component is compiled and injected into the component styles. In addition to this, the variables, mixins and such is included in the distributed package and is available for your project.
If you want the reset styles for instance, you can do like this:
@import '~norwegian-assets-ng/sass/2_generic/reset';
it's also possible to include the whole base style with fonts and all. To do this import
@import '~norwegian_assets_ng/sass/all';
The styles refer til asset files like fonts and icons. These files are part of the distributed package and you need to expose them through the angular compiler in order for everything to come together. You do this through defining app assets in your .angular-cli.json
file.
Add the following line to the apps.assets
array:
{ "glob": "**/*", "input": "../node_modules/norwegian-assets-ng/assets", "output": "./assets/" }
storybook is used for component documentation and is an easy way to preview a component in isolation while developing. Start it by doing an npm run dev
in your terminal.
Based on angular-library-seed.
Adding your own component doesn't require much, but there's a few things to be aware of:
src/components
index.ts
file in the component folder and export the component and modulesrc/components/index.ts
by adding export * from './your-component-name'
src/services
FAQs
Angular4+ library of Norwegian components
The npm package norwegian-assets-ng receives a total of 0 weekly downloads. As such, norwegian-assets-ng popularity was classified as not popular.
We found that norwegian-assets-ng 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
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.