GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - iiyo/usingify: Makes CommonJS modules available as using.js modules

BranchesTags
Open more actions menu

Latest commit

 

History

2 Commits
2 Commits

Folders and files

NameName
Last commit message
Last commit date
bin
bin
 
 
src
src
 
 
.eslintrc.json
.eslintrc.json
 
 
LICENSE.md
LICENSE.md
 
 
README.md
README.md
 
 
index.js
index.js
 
 
package.json
package.json
 
 

Repository files navigation

usingify

This module reads dependencies from a package.json file and produces some JavaScript to make the dependencies available in using.js.

To use this with browserify, just browserify the JS produced by usingify.

Installation

npm install -g usingify

Command line usage

usingify package.json > dependencies.js

Using the JavaScript API

You can use the usingify(package) function to read the parsed contents of a package.json file:

var usingify = require("usingify").usingify;
var fs = require("fs");
var file = "" + fs.readFileSync("package.json");
var package = JSON.parse(file);

fs.writeFileSync("dependencies.js", usingify(package));

Or you can use the toUsing(moduleName) function when you get your list of dependencies from elsewhere:

var toUsing = require("usingify").toUsing;
var dependencies = "";

["xmugly", "eases", "transform-js"].forEach(function (name) {
    dependencies += "\n" + toUsing(name) + "\n";
});

About

Makes CommonJS modules available as using.js modules

Resources

Readme
License
Activity
Custom properties

Stars

1 star

Watchers

1 watching

Forks

1 fork
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.