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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@datafire/bclaws_ca_bclaws

v6.0.0

Published

DataFire integration for BC Laws

Readme

@datafire/bclaws_ca_bclaws

Client library for BC Laws

Installation and Usage

npm install --save @datafire/bclaws_ca_bclaws
let bclaws_ca_bclaws = require('@datafire/bclaws_ca_bclaws').create();

.then(data => {
  console.log(data);
});

Description

BC Laws is an electronic library providing free public access to the laws of British Columbia. BC Laws is hosted by the Queen's Printer of British Columbia and published in partnership with the Ministry of Justice and the Law Clerk of the Legislative Assembly.BC Laws contains a comprehensive collection of BC legislation and related materials. It is available on the internet in two forms:First: The library is available as a web site in which users can browse and search the laws of British Columbia.Second: The library is available as a portal to legislation in raw XML data format, accessible via the BC Laws API2. This direct access to raw data is intended to enable third parties to build or add their own custom applications based on the structure of the data and all the associated search functionality inherent in that structure. The BC Laws website itself is an example of one such application.

Please note that you may experience issues when submitting requests to the delivery or test environment if using this OpenAPI specification in other API console viewers.

Actions

content.aspectId.get

Describes the documents and directories available within a specific 'aspect' (content group) of the BCLaws library

bclaws_ca_bclaws.content.aspectId.get({
  "aspectId": ""
}, context)

Input

  • input object
    • aspectId required string (values: complete, corpreg, bcgaz1, bcgaz2, oic, psl, ecb, hscr, arch_oic): The identifier of the 'aspect' (content group) to search

Output

Output schema unknown

content.aspectId.civixDocumentId.get

Lists the metadata available for the specified index or directory from the BCLaws legislative respository

bclaws_ca_bclaws.content.aspectId.civixDocumentId.get({
  "aspectId": "",
  "civixDocumentId": ""
}, context)

Input

  • input object
    • aspectId required string (values: complete, corpreg, bcgaz1, bcgaz2, oic, psl, ecb, hscr, arch_oic): The identifier of the 'aspect' (content group) to search
    • civixDocumentId required string: The document identification code for an index or directory

Output

Output schema unknown

document.id.aspectId.civixIndexId.civixDocumentId.get

The /document API allows you to retrieve actual documents from the BCLaws legislative repository. To retrieve a document from the repository you need the aspect identifier and two other specific pieces of information about the document: the index identifier and the document identifier. These unique identifiers can be retrieved from the /content API.

bclaws_ca_bclaws.document.id.aspectId.civixIndexId.civixDocumentId.get({
  "aspectId": "",
  "civixIndexId": "",
  "civixDocumentId": ""
}, context)

Input

  • input object
    • aspectId required string (values: complete, corpreg, bcgaz1, bcgaz2, oic, psl, ecb, hscr, arch_oic): The identifier of the 'aspect' (content group) to search
    • civixIndexId required string: Index identification code
    • civixDocumentId required string: The document identification code for an index or directory

Output

Output schema unknown

document.id.aspectId.civixIndexId.civixDocumentId.search.searchString.get

The /document API allows you to retrieve actual documents from the BCLaws legislative repository. To retrieve a document from the repository you need the aspect identifier and two other specific pieces of information about the document: the index identifier and the document identifier. These unique identifiers can be retrieved from the /content API.

bclaws_ca_bclaws.document.id.aspectId.civixIndexId.civixDocumentId.search.searchString.get({
  "aspectId": "",
  "civixIndexId": "",
  "civixDocumentId": "",
  "searchString": ""
}, context)

Input

  • input object
    • aspectId required string (values: complete, corpreg, bcgaz1, bcgaz2, oic, psl, ecb, hscr, arch_oic): The identifier of the 'aspect' (content group) to search
    • civixIndexId required string: Index identification code
    • civixDocumentId required string: The document identification code for an index or directory
    • searchString required string: The text to search for within the document

Output

Output schema unknown

document.id.aspectId.civixIndexId.civixDocumentId.xml.get

The /document API allows you to retrieve actual documents from the BCLaws legislative repository. To retrieve a document from the repository you need the aspect identifier and two other specific pieces of information about the document: the index identifier and the document identifier. These unique identifiers can be retrieved from the /content API.

bclaws_ca_bclaws.document.id.aspectId.civixIndexId.civixDocumentId.xml.get({
  "aspectId": "",
  "civixIndexId": "",
  "civixDocumentId": ""
}, context)

Input

  • input object
    • aspectId required string (values: complete, corpreg, bcgaz1, bcgaz2, oic, psl, ecb, hscr, arch_oic): The identifier of the 'aspect' (content group) to search
    • civixIndexId required string: Index identification code
    • civixDocumentId required string: The document identification code for an index or directory

Output

Output schema unknown

document.id.aspectId.civixIndexId.civixDocumentId.xml.search.searchString.get

The /document API allows you to retrieve actual documents from the BCLaws legislative repository. To retrieve a document from the repository you need the aspect identifier and two other specific pieces of information about the document: the index identifier and the document identifier. These unique identifiers can be retrieved from the /content API.

bclaws_ca_bclaws.document.id.aspectId.civixIndexId.civixDocumentId.xml.search.searchString.get({
  "aspectId": "",
  "civixIndexId": "",
  "civixDocumentId": "",
  "searchString": ""
}, context)

Input

  • input object
    • aspectId required string (values: complete, corpreg, bcgaz1, bcgaz2, oic, psl, ecb, hscr, arch_oic): The identifier of the 'aspect' (content group) to search
    • civixIndexId required string: Index identification code
    • civixDocumentId required string: The document identification code for an index or directory
    • searchString required string: The text to search for within the document

Output

Output schema unknown

search.aspectId.fullsearch.get

A listing of metadata available for the specified aspect and search term from the BCLaws legislative repository

bclaws_ca_bclaws.search.aspectId.fullsearch.get({
  "aspectId": "",
  "q": "",
  "s": "",
  "e": 0,
  "nFrag": 0,
  "lFrag": 0
}, context)

Input

  • input object
    • aspectId required string (values: complete, corpreg, bcgaz1, bcgaz2, oic, psl, ecb, hscr, arch_oic): The identifier of the 'aspect' (content group) to search
    • q required string: query term
    • s required string: first hit (start index)
    • e required integer: last hit (end index)
    • nFrag required integer: number of fragment snippets to return (< 10)
    • lFrag required integer: length of fragment snippets (< 200)

Output

Output schema unknown

Definitions

This integration has no definitions