1.7.6 • Published 4 years ago

package.json_reader v1.7.6

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

This Package is only usable with ESM.

Load Your objects from "package.json" easily!

all methods are: package_json.getAllObjects() : gets every Object in order of the "package.json" file. Returns Object package_json.getName() : gets the name of your project. Returns String package_json.getDescription() : gets the description of your project. Returns String package_json.getVersion() : gets the version of your project. Returns String package_json.getKeywords() : gets the keywords of your project. Returns Array package_json.getAuthor() : gets the author of your project. Returns String package_json.getLicense() : gets the license of your project. Returns String package_json.getMainFile() : gets the main file of your project. Returns String package_json means the new class which you construct from the package, see the below example for more information on doing this.

this package cannot be installed with powershell , as it shows some errors with packages whose name contain @ , most terminals/consoles support @ , but some don't.

example:

import Util from "@chill_coder.shaur31/package.json_loader";
const package_json = new Util();
console.log(package_json.getDescription()); // will return your project's description in your console/terminal, also , you can use the above methods , it's not necessary to use "getDescription()".

if you have any questions/doubts or errors, join the Discord if you want the CJS version of this package, go to this package

1.7.6

4 years ago

1.7.5

4 years ago

1.7.4

4 years ago

1.7.3

4 years ago