Skip to content

Link distant parts of your codebase together. Keep your source code in sync.

Notifications You must be signed in to change notification settings

theScottyJam/coderef

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Code-Ref

Link distant parts of your codebase together with randomly generated coderefs, either from the coderef webpage hosted from the "webpage" branch, or using the npx coderef command, found on this branch.


Example

someScript.js

const el = document.querySelector('#someElement');
const color = '#00f'; // Search this project for §xRDEM to find other locations that use this color.
el.style.backgroundColor = color;

pageStyle.css

body {
    /* Search this project for §xRDEM to find other locations that use this color. */
    color: #00f;
}

Anyone reading this code can know that if they use their favorite project-searching tool (via their editor, grep, etc), they can easily find all related pieces of code.


Happy Coding!



API

If for some reason you choose to install and import this package, you will find it exposes a single generate function, which, when called, returns a randomly generated tag.

License

This project is under the MIT license.

About

Link distant parts of your codebase together. Keep your source code in sync.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published