pathchain 1.0.36 → 1.0.37

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +26 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -209,6 +209,32 @@ exports.getPathObj = (xpath, xauthor="") => {
209
209
  }
210
210
 
211
211
 
212
+ ////////////////////
213
+ /// LABEL ///
214
+ ////////////////////
215
+
216
+ /** makeLabel
217
+ * [Label maker]
218
+ *
219
+ * @return {string} label_buffer
220
+ */
221
+ exports.makeLabel = (text ="", xauthor = "", ancestor = "", format = 'MM DD YYYY HH:mm:SSS [GMT]Z') => {
222
+ const label_buffer = maker.label(text, xauthor, ancestor, format);
223
+ return label_buffer;
224
+ }
225
+
226
+ /** getLabelObj
227
+ * [Function that recieves a label hash and returns the label object]
228
+ *
229
+ * @param {string} xlabel (required)
230
+ *
231
+ * @return {obj} label_object (label object)
232
+ */
233
+ exports.getLabelObj = (xlabel, xauthor="") => {
234
+ const label_object = getter.getLabelObj(xlabel, xauthor);
235
+ return label_object;
236
+ }
237
+
212
238
  ///////////////////////
213
239
  /// NODELINK ///
214
240
  ///////////////////////
@@ -235,4 +261,3 @@ exports.getNodelinkObj = (xnodelink, xauthor="") => {
235
261
  return nodelink_object;
236
262
  }
237
263
 
238
-
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pathchain",
3
- "version": "1.0.36",
3
+ "version": "1.0.37",
4
4
  "dependencies": {
5
5
  "date-and-time": "^3.0.2",
6
6
  "empty-dir": "^3.0.0",