Wondering what’s next for npm?Check out our public roadmap! »

    protocol-numbers

    0.0.0 • Public • Published

    IANA Protocol Numbers

    Assigned Internet Protocol Numbers (from iana.org)

    Usage

    In Node.js

    > var protocols = require('protocol-numbers')
    undefined
    > protocols[4].name
    'IPv4'
    > protocols[4].description
    'IPv4 encapsulation'
    > 

    In the Browser

    <script src="protocol-numbers.js"></script>
    <script>
        alert(protocol_numbers[4].name); // => 'IPv4'
    </script>
    

    Up to date list

    You can generate an up-to-date list of the protocols. Follow these steps:

    git clone git://github.com/bahamas10/node-protocol-numbers.git
    cd node-protocol-numbers
    npm install # for xml2js and request
    make
    

    This will run the included script get-list.js and redirect the output for you

    Installation

    npm install protocol-numbers
    

    License

    MIT Licensed

    Keywords

    none

    Install

    npm i protocol-numbers

    DownloadsWeekly Downloads

    7

    Version

    0.0.0

    License

    none

    Last publish

    Collaborators

    • avatar