New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@naeimsafaee/ns-config

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@naeimsafaee/ns-config

laravel config package

latest
npmnpm
Version
1.2.5
Version published
Maintainers
1
Created
Source

naeimsafaee

Laravel config package : ns-config

Build Status

ns-config is built to provide laravel config package features in node.

Installation

First of all install lib using :

npm i @naeimsafaee/ns-config

After installing you will have a config folder in your project and you can build any js file you want like below:

module.exports = {
    "host" : "localhost"
}

alt text

Then use this at the beginning of your code:

require('@naeimsafaee/ns-config')

And use this in your code wherever needed:

const mail_host = config("mail.host")
console.log(mail_host)

Done. 🎉

Help

if you need any help or any suggestion, feel free to contact me with naeimsafaee1412@gmail.com

Donation

Btc: bc1qtn6r0wguu89ek5hfhq5u0v6h0xt0u7yzjapz5m

Any erc20 token: 0xD18Cb4610c5bE6A43FaBf9961E103Fce581439F8

Keywords

node config

FAQs

Package last updated on 16 Mar 2022

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