Skip to content

fussydesigns/marksman

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Marksman

Replacement function for gun's internal .path() function, except replacing the core delimiter from a period to a forward-slash.

Using in applications

npm i --save marksman gun
var Gun = require('gun');
Gun.chain.path = require('marksman');
var gun = new Gun();

var x = { object: true };
// the following lines are equivalent:

gun.get('first').get('second').get('third').put(x);

gun.path(['first', 'second', 'third']).put(x);

gun.path('first/second/third').put(x);

License

This is a fork of gun.js with everything else stripped

Designed with ♥ by Mark Nadal, the GUN team, and many amazing contributors.

Openly licensed under Zlib / MIT / Apache 2.0.

About

Drop-in .path() replacement for gun.js

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%