UNPKG

@frontitude/cli

Version:

The Frontitude CLI enables product teams to integrate their code with Frontitude (frontitude.com), thus creating a single source of truth for their product copy, from design to development.

1 lines 568 B
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const propertiesReader=require("properties-reader");class PropertiesAdapter{constructor(t){this.instance=propertiesReader(t),this.filePath=t}getAllAttributes(){return this.instance.getAllProperties()}async getAttr(t){return this.instance.get(t)}async setAttrAndSave(t,e){this.instance.set(t,e),await this.instance.save(this.filePath)}setAttr(t,e){return this.instance.set(t,e),this.instance}async save(){return await this.instance.save(this.filePath),this.instance}}exports.default=PropertiesAdapter;