
Product
Introducing Socket Firewall Enterprise: Flexible, Configurable Protection for Modern Package Ecosystems
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.
@gmod/ucsc-hub
Advanced tools
Read and write UCSC track and assembly hub files in node or the browser
read and write UCSC track and assembly hub files in node or the browser
Read about hub.txt, genomes.txt, and trackDb.txt files here: https://genome.ucsc.edu/goldenpath/help/hgTrackHubHelp.html
Extends RaFile
Class representing a genomes.txt file.
Extends RaStanza
Class representing a hub.txt file.
Class representing an ra file. Each file is composed of multiple stanzas, and
each stanza is separated by one or more blank lines. Each stanza is stored in
a Map with the key being the value of the first key-value pair in the stanza.
The usual Map methods can be used on the file. An additional method add()
is available to take a raw line of text and break it up into a key and value
and add them to the class. This should be favored over set() when possible,
as it performs more validity checks than using set().
raFile (string | Array<string>) An ra file, either as a single
string or an array of strings with one stanza per entry. Supports both LF
and CRLF line terminators. (optional, default [])
options object
options.checkIndent boolean [true] - Check if a the stanzas within
the file are indented consistently and keep track of the indentationnameKey (undefined | string) The key of the first line of all the
stanzas (undefined if the stanza has no lines yet).Class representing an ra file stanza. Each stanza line is split into its key and value and stored as a Map, so the usual Map methods can be used on the stanza.
stanza (string | Array<string>) (optional, default [])options {checkIndent: boolean?, skipValidation: boolean?}? Class representing a "single-file" hub.txt file that contains all the sections of a hub in a single file.
hubText string Extends RaFile
Class representing a genomes.txt file.
trackDbFile (string | Array<string>) A trackDb.txt file as a string (optional, default [])options any? Gets all track entries including those of parent tracks, with closer entries overriding more distant ones
trackName string The name of a trackFAQs
Read and write UCSC track and assembly hub files in node or the browser
We found that @gmod/ucsc-hub demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 6 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authorities’ publishing activity, highlighting trends and transparency across the CVE ecosystem.

Product
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.