@rdfrontier/plugin-shared
v0.0.8
Published
plugin shared functionalities
Downloads
2
Readme
Frontier Plugin Shared Functions Library
@rdfrontier/plugin-shared
A library of common functionalities utilized amongst the frontier plugins available.
Table of Contents
Installation
$ yarn add @rdfrontier/plugin-shared
or
$ npm install @rdfrontier/plugin-shared
Usage
Eg: import { invalidProject } from '@rdfrontier/plugin-shared';
Options
| Name | Description | | --- | ------------- | | Errors | | | invalidProject(commandType: string, projectType: string) | Throw error if project location is invalid. | | existingProject(projectType: string) | Throw error if project already exists. | | fileNotChanged() | Throw error file has not been updated. | | Response | | | successfulReplaceResponse(successfulReplace: boolean, elementName: string, elementType: string) | Return response of whether file is ready for use or not. |