Git Product home page Git Product logo

jamilservices-namespace-helper's Introduction

@jamilservices/namespace-helper

Personal namespace help module for javascript.

Table of Contents

Installation ways:

(go to top)

  • from github:
npm install --save git+https://github.com/jamilservicos/jamilservices-namespace-helper.git
yarn add git+https://github.com/jamilservicos/jamilservices-namespace-helper.git

  • from npm:
npm install --save @jamilservices/namespace-helper
yarn add @jamilservices/namespace-helper

Important Upgrade Notice for Version 1.0.0

(go to top)

If you're updating to version 1.0.0 of @jamilservices/types-helper, please be aware of the following requirements and recommendations:

Node.js Version Requirement:

Version 1.0.0 of @jamilservices/types-helper is designed to work with Node.js versions 20.10 or higher. Ensure that your environment is running a compatible version of Node.js to avoid any compatibility issues.

Migrating from Version 0.1.2:

If you're migrating from version 0.1.2, it's crucial to carefully review and implement the necessary updates and adaptations for version 1.0.0. This version includes significant changes that may affect how you use the library.

Why Upgrade?

Upgrading to version 1.0.0 brings you the latest features, performance improvements, and bug fixes. We strongly recommend updating to enhance your application's functionality and security.

Need Help?

Should you face any challenges or have queries about transitioning to version 1.0.0, we are here to help. For further assistance or to report any issues, please visit our issues page where you can submit queries and report problems.

Your feedback is invaluable in helping us refine and enhance @jamilservices/types-helper.

Import module

(go to top)

 require("@jamilservices/namespace-helper")();

or

 const customVariableName = require("@jamilservices/namespace-helper");
customVariableName();

or

 import customVariableName from "@jamilservices/namespace-helper";
customVariableName();

Object Parameters

(go to top)

  • mut: if set to "true", it will activate the mutability of stores. default: false
require("@jamilservices/namespace-helper")({
    mut: true
});
  • prefix: if configured, will override the default trigger. default: ns
require("@jamilservices/namespace-helper")({
    prefix: 'nameSpacePrefixExample'
});
  • isolate: if set to "true", will only create a local instance, without automatically setting it to global. default: false
require("@jamilservices/namespace-helper")({
    isolate: true
});

Object Methods

(go to top)

  • deps: organize all dependencies for injection.
nameSpacePrefixExample.deps("testDepencyName", (test) => {
    console.log("testDepencyName deps:", test);
});
nameSpacePrefixExample.deps("testDepencyName")("testString");
  • storage: organizes all variables for global access.
nameSpacePrefixExample.storage("testGeneralName", "only one test");
console.log(nameSpacePrefixExample.storage("testGeneralName"));
  • settings: organizes all settings for global access.
nameSpacePrefixExample.settings("testApiKeyFromEnv", process.env.TESTAPIKEY);
console.log(nameSpacePrefixExample.settings("testApiKeyFromEnv"));
  • show: overview of all stores saved in the namespace
nameSpacePrefixExample.show();

License

(go to top)

Released under MIT by @jamilservicos.

  • You can freely modify and reuse.
  • The original license must be included with copies of this software.
  • Please link back to this repo if you use a significant portion the source code.

๐Ÿ‘ฉโ€๐Ÿ’ป๐Ÿ’ป Technologies

(go to top)

JavaScript Nodejs

jamilservices-namespace-helper's People

Contributors

dependabot[bot] avatar jamilservicos avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

jamilservices

jamilservices-namespace-helper's Issues

update version to v1.0.0

  • remove lodash dependency
  • remove jest dependency
  • remove @types/node dependency
  • remove example @jamilservices/types-helper dependency
  • update node version compatibility to 20.10.+
  • add/update features
  • add/update funtions
  • add/update structure
  • add/update tests
  • add/update examples
  • add/update documentation
  • update npm version
  • add FUNDING.yml

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.