openm

open npmjs module pages in your browser

Usage no npm install needed!

<script type="module">
  import openm from 'https://cdn.skypack.dev/openm';
</script>

README

openm

npm version Build Status npm download count XO code style

open npmjs module pages in your browser


demo


CLI

Install

$ npm install -g openm

Usage

$ openm
//=> opens the npmjs module page for the current directory in browser

$ openm chalk
//=> opens the npmjs module page for chalk in browser

$ openm inf sist openm
//=> opens the npmjs module pages for inf, sist, and openm in browser

More help

$ openm --help

  Usage  
    $ openm
    //=> opens the npmjs module page for the current directory in browser

    $ openm [*<module name>]
    //=> opens the npmjs module page for N-lengthed <module name> packages in browser'

  Examples  
    $ openm express
    //=> opens the npmjs module page for express in browser


Package

Install

npm install --save openm

Usage

const openm = require('openm');

openm('express');
//=> 'https://www.npmjs.com/module/express'

API

openm(target)

target

Type: string

returns

Type: string


License

MIT © Dawson Botsford


If you like this, star it. If you want to follow me, follow me.