Socket
Book a DemoInstallSign in
Socket

@djoman/npu-config

Package Overview
Dependencies
Maintainers
0
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

@djoman/npu-config

Potpay - NPU Config

1.1.0
unpublished
latest
Source
npmnpm
Version published
Weekly downloads
0
Maintainers
0
Weekly downloads
 
Created
Source

Clean Config - Shared Configuration

The purpose of the package is to expose configuration files to be used in all potpay new Backend projects.

To install it:

npm i --save-dev @djoman/npu-config

TS Config

TS configuration file for Node is available, use it with:

// tsconfig.json
{
  "extends": "@djoman/npu-config/tsconfig.json",
  "compilerOptions": {
    "baseUrl": ".",
    "outDir": "./dist"
  },
  "include": [
    "./src"
  ]
}

[Optional] TS Alias

The configuration provides the # TS alias as ./src. It is recommended to use it to replace ascending imports to improve source readability, for example

// Prefer the use of the alias
import { Event } from '#/event'
// over
import { Event } from '../../event'

The alias may be removed after transpilation with tsc-alias like:

"scripts": {
    "build": "tsc --p . -d && tsc-alias",
}

Or use it with tsconfig-paths:

"scripts": {
    "dev": "node -r ts-node/register -r tsconfig-paths/register ./src/index.ts",
}

Eslint & Prettier

Eslint configuration file is available, use it with:

// .eslintrc.js
module.exports = require('@epsor/npu-config/.eslintrc.js')

Please note:

  • The exposed ESLint config is importing a Prettier configuration thus it is not required to configure Prettier.

FAQs

Package last updated on 25 Feb 2025

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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.