Socket
Book a DemoInstallSign in
Socket

regulation-reference-parser

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

regulation-reference-parser

Parse references to CFR regulations into an object.

latest
Source
npmnpm
Version
1.0.1
Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

Regulation Reference Parser

Installation

npm install regulation-reference-parser

Usage

const parse = require('regulation-reference-parser')

parse('14 CFR § 91.213(b)(2) and (c)(3)')
=> { 
     title: '14',
     part: '91',
     section: '213',
     /* not supported yet
     paragraphs: [
       'b',
       'c'
     ],
     subparagraphs: [
       b: [
         '2'
       ],
       c: [
         '3'
       ]
     ]
     */
   }

Notes

This is a work in progress.

This was written for use in reference to aviation regulations. It will most likely cover scenarios related to aviation. Outside that scope, it will most likely not cover all scenarios, but feel free to contribute to the library.

FAQs

Package last updated on 22 Mar 2018

Did you know?

Socket

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.

Install

Related posts