npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@am92/securities-utility

v0.1.2

Published

A utility package for securities applications

Readme

@am92/securities-utility

npm version  ECMAScript Module  License: MIT  Vulnerabilities: Snyk  Downloads Bundle Size

Table of Content

Installation

$ npm install --save @am92/securities-utility

Initialization

The initialization step downloads the security master (sec master) from the specified URL and applies optimizations to enhance the performance of subsequent functionalities. This step runs on the main thread, and the package internally manages the worker for parallel execution. You only need to include a dedicated TypeScript/JavaScript file in your index.html

Instructions

  1. Create a New File:

    Create a new TypeScript/JavaScript file (e.g., initializeSecMaster.ts) containing the initialization code.

initializeSecMaster.ts

import { initialize } from '@am92/securities-utility'

const SEC_MASTER_URL = process.env.SEC_MASTER_URL // URL for downloading the sec master (can be environment-specific)

// Initialize the sec master
try {
  initialize(SEC_MASTER_URL)
  console.log('Sec master initialization successful.')
} catch (error) {
  console.error('Sec master initialization failed:', error)
}
  1. Include the File in index.html

    Add the following script tag to your index.html to include the file:
<script type='module' src='./initializeSecMaster.ts'></script>

Initialized Security Master With Search Module

initializeSecMaster.ts

  1. Pass { requireSearchModule: true } to enable the fuzzy search module during Security Master initialization.

import { initialize } from '@am92/securities-utility'

const SEC_MASTER_URL = process.env.SEC_MASTER_URL // URL for downloading the sec master (can be environment-specific)

// Initialize the sec master
try {
  initialize(SEC_MASTER_URL, {
    requireSearchModule: true
  })
  console.log('Sec master initialization successful.')
} catch (error) {
  console.error('Sec master initialization failed:', error)
}

Using Search Function When Required

import { searchManager } from '@am92/securities-utility'

const handleSearch = async (searchString: string) => {
  const searchResult = await searchManager.search(searchString)
  console.log(searchResult) // Array of matched security objects
}

Notes:

  • The package automatically handles the use of a web worker for parallel execution, ensuring the main thread remains unblocked.
  • Ensure the SEC_MASTER_URL environment variable is correctly configured for your deployment environment.

This streamlined approach keeps your application setup simple while leveraging the package's internal optimizations.

Contributors

Resources

License