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 🙏

© 2024 – Pkg Stats / Ryan Hefner

@ehs-utils/regulatory-authorities

v1.0.11

Published

This npm package provides a comprehensive database of regulatory authorities responsible for enforcing environmental regulations related to asbestos, mold, and other categories. It allows you to access data by state and by category, providing a convenient

Downloads

42

Readme

Regulatory Authorities Package

Description

This npm package provides a comprehensive database of regulatory authorities responsible for enforcing environmental regulations related to asbestos, mold, and other categories. It allows you to access data by state and by category, providing a convenient way to retrieve regulatory agency information for a particular type of regulation in a specific state.

The package includes a getRegulatoryAgency() function that allows you to retrieve information about the regulatory agency responsible for enforcing a particular type of environmental regulation in a given state. You can specify the state and category of regulation (e.g., asbestos, mold) to retrieve the corresponding agency information.

The returned RegulatoryAgency object contains detailed information about the regulatory agency, including its name, abbreviation, phone number, website, and other relevant data. You can use this information to assist with compliance and regulatory reporting.

This package is useful for anyone who needs to access regulatory agency data related to environmental regulations, such as environmental consultants, facility managers, and regulatory compliance professionals. It provides a convenient and easy-to-use way to retrieve detailed regulatory agency information by state and by category, ensuring compliance with environmental regulations.

Installation

To install the package, run the following command:

npm install @ehs-utils/regulatory-authorities

Usage

To use the package, import the getRegulatoryAgency function from the package:

import { getRegulatoryAgency } from '@ehs-utils/regulatory-authorities';

Then, call the function with the state and category of regulation as arguments:

const agency = getRegulatoryAgency({ name: "California"}, 'Asbestos');

Example

import { getRegulatoryAgency } from '@ehs-utils/regulatory-authorities';

const agency = getRegulatoryAgency({ name: 'California' }, 'Asbestos');

Methods

getRegulatoryAgency(state, category)

Returns a RegulatoryAgency object containing information about the regulatory agency responsible for enforcing a particular type of environmental regulation in a given state.

Arguments

| Argument | Type | Description | | -------- | -------- | ---------------------------------------------------- | | state | State | The state in which the regulatory agency is located. | | category | Category | The category of environmental regulation. |

Returns

| Type | Description | | ---------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | RegulatoryAgency | A RegulatoryAgency object containing information about the regulatory agency responsible for enforcing a particular type of environmental regulation in a given state. |

Types

State

| Property | Type | Description | | ------------ | ------ | ------------------------------------------ | | name | string | The name of the state. | | abbreviation | string | The two-letter abbreviation for the state. |

Category

| Name | Description | | -------- | ----------------------------- | | Asbestos | Asbestos-related regulations. | | Mold | Mold-related regulations. |

RegulatoryAgency
Properties

| Property | Type | Description | | ------------------- | ------ | ---------------------------------------------------------------------------- | | name | string | The name of the regulatory agency. | | abbreviation | string | The abbreviation for the regulatory agency. | | website | string | The website for the regulatory agency. | | phone | string | The phone number for the regulatory agency. | | governance | string | The type of governance for the regulatory agency. (ie. Asbestos, Mold, etc.) | | state | State | The state in which the regulatory agency is located. | | requestedGovernance | string | The type of governance requested. |

Class Methods

toJSON()

Returns a JSON representation of the RegulatoryAgency object.

Example
const agency = getRegulatoryAgency({ name: 'California' }, 'Asbestos');
console.log(agency.toJSON());

// {"name":"California Division of Occupational Safety and Health","abbreviation":"Cal/OSHA","phone":"800-963-9424","website":"https://www.dir.ca.gov/dosh/Asbestos-in-Construction.html","governance":["Asbestos"]}

getInfo(useRequestedAgencyOnly)

Returns a string representation of the RegulatoryAgency object.

Arguments

| Argument | Type | Description | | ---------------------- | ------- | --------------------------------------------------------------------------------------------- | | useRequestedAgencyOnly | boolean | If true, only the requested agency will be returned. If false, all agencies will be returned. |

Example
const agency = getRegulatoryAgency({ name: 'California' }, 'Asbestos');
console.log(agency.getInfo());

// California Division of Occupational Safety and Health (Cal/OSHA) is the governing agency for asbestos in California: Phone: 800-963-9424, Website: https://www.dir.ca.gov/dosh/Asbestos-in-Construction.html

License

MIT License

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Road Map

  • [ ] Add more regulatory agencies
  • [ ] Add more categories
  • [ ] Add more states
  • [ ] Expand outside of the US
  • [ ] Add more methods to the RegulatoryAgency class

Current Supported States

  • California
  • Florida
  • New York
  • Louisiana
  • Texas

Current Supported Categories

  • Asbestos
  • Mold

Contact

For questions or comments, use the Discussions feature or please contact us at [email protected] or visit our website at https://srpenvironmental.com

Acknowledgements

This package was created by SRP Environmental, LLC a leading IH, environmental, and safety consulting firm based in the United States. For more information, please visit our website at https://srpenvironmental.com/about/

Disclaimer

This package is not intended to be used as legal advice. Please consult with an attorney for legal advice. This package is provided "as is" without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose and noninfringement. In no event shall the authors or copyright holders be liable for any claim, damages or other liability, whether in an action of contract, tort or otherwise, arising from, out of or in connection with the software or the use or other dealings in the software.

Changelog

1.0.0
  • Initial release