slndev
first node app
Last updated 6 years ago by pottiz .
Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install slndev 
SYNC missed versions from official npm registry.
<!DOCTYPE html> <html> <head prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# githubog: http://ogp.me/ns/fb/githubog#"> <meta charset='utf-8'> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>init-package-json/README.md at master ยท isaacs/init-package-json</title> <link rel="search" type="application/opensearchdescription+xml" href="/opensearch.xml" title="GitHub" /> <link rel="fluid-icon" href="https://github.com/fluidicon.png" title="GitHub" /> <link rel="apple-touch-icon" sizes="57x57" href="/apple-touch-icon-114.png" /> <link rel="apple-touch-icon" sizes="114x114" href="/apple-touch-icon-114.png" /> <link rel="apple-touch-icon" sizes="72x72" href="/apple-touch-icon-144.png" /> <link rel="apple-touch-icon" sizes="144x144" href="/apple-touch-icon-144.png" /> <link rel="logo" type="image/svg" href="https://github-media-downloads.s3.amazonaws.com/github-logo.svg" /> <meta property="og:image" content="https://github.global.ssl.fastly.net/images/modules/logos_page/Octocat.png"> <meta name="hostname" content="fe4.rs.github.com"> <link rel="assets" href="https://github.global.ssl.fastly.net/"> <link rel="xhr-socket" href="/_sockets" />
<meta name="msapplication-TileImage" content="/windows-tile.png" />
<meta name="msapplication-TileColor" content="#ffffff" />
<meta name="selected-link" value="repo_source" data-pjax-transient />
<meta content="collector.githubapp.com" name="octolytics-host" /><meta content="github" name="octolytics-app-id" /><meta content="4436001" name="octolytics-actor-id" /><meta content="Pottiz" name="octolytics-actor-login" /><meta content="fc865b0fff74e6213a9905317021b36d312748b3e75ffff3df25e826516e9c3d" name="octolytics-actor-hash" />



<link rel="icon" type="image/x-icon" href="/favicon.ico" />

<meta content="authenticity_token" name="csrf-param" />
<meta content="GuViogh8I0JBD7pk2KPZAA0HXwir8ow83i1zpHfm91A=" name="csrf-token" />
<link href="https://github.global.ssl.fastly.net/assets/github-c6ca95663cba6496fe7a5bdd98671b82cd956df3.css" media="all" rel="stylesheet" type="text/css" />
<link href="https://github.global.ssl.fastly.net/assets/github2-71386ba60dc4794e755db985b31f4dfc74dcd99d.css" media="all" rel="stylesheet" type="text/css" />



  <script src="https://github.global.ssl.fastly.net/assets/frameworks-eae23340ab2a6ba722166712e699c87aaf60ad8f.js" type="text/javascript"></script>
  <script src="https://github.global.ssl.fastly.net/assets/github-18b6034238e565024b1655d9ae19d5203046e4cf.js" type="text/javascript"></script>
  
  <meta http-equiv="x-pjax-version" content="307764eea59784fdc9722d8eeaca7f02">

    <link data-pjax-transient rel='permalink' href='/isaacs/init-package-json/blob/2daa1a1470479f22f15b3e91b1a20406068fa06e/README.md'>
<meta property="og:title" content="init-package-json"/> <meta property="og:type" content="githubog:gitrepository"/> <meta property="og:url" content="https://github.com/isaacs/init-package-json"/> <meta property="og:image" content="https://github.global.ssl.fastly.net/images/gravatars/gravatar-user-420.png"/> <meta property="og:site_name" content="GitHub"/> <meta property="og:description" content="Contribute to init-package-json development by creating an account on GitHub."/> <meta name="description" content="Contribute to init-package-json development by creating an account on GitHub." /> <meta content="9287" name="octolytics-dimension-user_id" /><meta content="isaacs" name="octolytics-dimension-user_login" /><meta content="4689678" name="octolytics-dimension-repository_id" /><meta content="isaacs/init-package-json" name="octolytics-dimension-repository_nwo" /><meta content="true" name="octolytics-dimension-repository_public" /><meta content="false" name="octolytics-dimension-repository_is_fork" /><meta content="4689678" name="octolytics-dimension-repository_network_root_id" /><meta content="isaacs/init-package-json" name="octolytics-dimension-repository_network_root_nwo" /> <link href="https://github.com/isaacs/init-package-json/commits/master.atom" rel="alternate" title="Recent Commits to init-package-json:master" type="application/atom+xml" /> </head> <body class="logged_in page-blob windows vis-public env-production ">
<div class="wrapper">
  
  
  


  <div class="header header-logged-in true">
<a class="header-logo-invertocat" href="https://github.com/">

<div class="divider-vertical"></div>

  <a href="/notifications" class="notification-indicator tooltipped downwards" title="You have no unread notifications">
<span class="mail-status all-read"></span>
  <div class="command-bar js-command-bar  in-repository">
      <form accept-charset="UTF-8" action="/search" class="command-bar-form" id="top_search_form" method="get">

<input type="text" data-hotkey="/ s" name="q" id="js-command-bar-field" placeholder="Search or type a command" tabindex="1" autocapitalize="off"

data-username="Pottiz"
  data-repo="isaacs/init-package-json"
  data-branch="master"
  data-sha="c687e95fe9afa9e42591d1c9fdef39a6ee81ea30"
<input type="hidden" name="nwo" value="isaacs/init-package-json" />

<div class="select-menu js-menu-container js-select-menu search-context-select-menu">
  <span class="minibutton select-menu-button js-menu-target">
    <span class="js-select-button">This repository</span>
  </span>

  <div class="select-menu-modal-holder js-menu-content js-navigation-container">
    <div class="select-menu-modal">

      <div class="select-menu-item js-navigation-item js-this-repository-navigation-item selected">
        <span class="select-menu-item-icon octicon octicon-check"></span>
        <input type="radio" class="js-search-this-repository" name="search_target" value="repository" checked="checked" />
        <div class="select-menu-item-text js-select-button-text">This repository</div>
      </div> <!-- /.select-menu-item -->

      <div class="select-menu-item js-navigation-item js-all-repositories-navigation-item">
        <span class="select-menu-item-icon octicon octicon-check"></span>
        <input type="radio" name="search_target" value="global" />
        <div class="select-menu-item-text js-select-button-text">All repositories</div>
      </div> <!-- /.select-menu-item -->

    </div>
  </div>
</div>
<input type="hidden" name="ref" value="cmdform"> </form>
<ul id="user-links">
  <li>
    <a href="/Pottiz" class="name">
      <img height="20" src="https://secure.gravatar.com/avatar/354ccc68b76a1ce05dd32574a31bd09a?s=140&amp;d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png" width="20" /> Pottiz
    </a>
  </li>

    <li>
      <a href="/new" id="new_repo" class="tooltipped downwards" title="Create a new repo" aria-label="Create a new repo">
        <span class="octicon octicon-repo-create"></span>
      </a>
    </li>

    <li>
      <a href="/settings/profile" id="account_settings"
        class="tooltipped downwards"
        aria-label="Account settings "
        title="Account settings ">
        <span class="octicon octicon-tools"></span>
      </a>
    </li>
    <li>
      <a class="tooltipped downwards" href="/logout" data-method="post" id="logout" title="Sign out" aria-label="Sign out">
        <span class="octicon octicon-log-out"></span>
      </a>
    </li>

</ul>
  • New repository
  • New organization
  • <li class="section-title">
      <span title="isaacs/init-package-json">This repository</span>
    </li>
    <li>
      <a href="/isaacs/init-package-json/issues/new"><span class="octicon octicon-issue-opened"></span> New issue</a>
    </li>
    
      <div class="site" itemscope itemtype="http://schema.org/WebPage">

<div class="pagehead repohead instapaper_ignore readability-menu">
  <div class="container">
    <h1 itemscope itemtype="http://data-vocabulary.org/Breadcrumb" class="entry-title public">
      <span class="repo-label"><span>public</span></span>
      <span class="mega-octicon octicon-repo"></span>
      <span class="author">
        <a href="/isaacs" class="url fn" itemprop="url" rel="author"><span itemprop="title">isaacs</span></a></span
      ><span class="repohead-name-divider">/</span><strong
      ><a href="/isaacs/init-package-json" class="js-current-repository js-repo-home-link">init-package-json</a></strong>

      <span class="page-context-loader">
        <img alt="Octocat-spinner-32" height="16" src="https://github.global.ssl.fastly.net/images/spinners/octocat-spinner-32.gif" width="16" />
      </span>

    </h1>
  </div><!-- /.container -->
</div><!-- /.repohead -->

<div class="container">

  <div class="repository-with-sidebar repo-container ">

    <div class="repository-sidebar">
  • Code Octocat-spinner-32
  •     <li class="tooltipped leftwards" title="Issues">
          <a href="/isaacs/init-package-json/issues" aria-label="Issues" class="js-selected-navigation-item js-disable-pjax" data-gotokey="i" data-selected-links="repo_issues /isaacs/init-package-json/issues">
            <span class="octicon octicon-issue-opened"></span> <span class="full-word">Issues</span>
            <span class='counter'>2</span>
            <img alt="Octocat-spinner-32" class="mini-loader" height="16" src="https://github.global.ssl.fastly.net/images/spinners/octocat-spinner-32.gif" width="16" />
    

      <li class="tooltipped leftwards" title="Pull Requests"><a href="/isaacs/init-package-json/pulls" aria-label="Pull Requests" class="js-selected-navigation-item js-disable-pjax" data-gotokey="p" data-selected-links="repo_pulls /isaacs/init-package-json/pulls">
            <span class="octicon octicon-git-pull-request"></span> <span class="full-word">Pull Requests</span>
            <span class='counter'>2</span>
            <img alt="Octocat-spinner-32" class="mini-loader" height="16" src="https://github.global.ssl.fastly.net/images/spinners/octocat-spinner-32.gif" width="16" />
    

        <li class="tooltipped leftwards" title="Wiki">
          <a href="/isaacs/init-package-json/wiki" aria-label="Wiki" class="js-selected-navigation-item " data-pjax="true" data-selected-links="repo_wiki /isaacs/init-package-json/wiki">
            <span class="octicon octicon-book"></span> <span class="full-word">Wiki</span>
            <img alt="Octocat-spinner-32" class="mini-loader" height="16" src="https://github.global.ssl.fastly.net/images/spinners/octocat-spinner-32.gif" width="16" />
    

      <li class="tooltipped leftwards" title="Pulse">
        <a href="/isaacs/init-package-json/pulse" aria-label="Pulse" class="js-selected-navigation-item " data-pjax="true" data-selected-links="pulse /isaacs/init-package-json/pulse">
          <span class="octicon octicon-pulse"></span> <span class="full-word">Pulse</span>
          <img alt="Octocat-spinner-32" class="mini-loader" height="16" src="https://github.global.ssl.fastly.net/images/spinners/octocat-spinner-32.gif" width="16" />
    

      <li class="tooltipped leftwards" title="Graphs">
        <a href="/isaacs/init-package-json/graphs" aria-label="Graphs" class="js-selected-navigation-item " data-pjax="true" data-selected-links="repo_graphs repo_contributors /isaacs/init-package-json/graphs">
          <span class="octicon octicon-graph"></span> <span class="full-word">Graphs</span>
          <img alt="Octocat-spinner-32" class="mini-loader" height="16" src="https://github.global.ssl.fastly.net/images/spinners/octocat-spinner-32.gif" width="16" />
    

      <li class="tooltipped leftwards" title="Network">
        <a href="/isaacs/init-package-json/network" aria-label="Network" class="js-selected-navigation-item js-disable-pjax" data-selected-links="repo_network /isaacs/init-package-json/network">
          <span class="octicon octicon-git-branch"></span> <span class="full-word">Network</span>
          <img alt="Octocat-spinner-32" class="mini-loader" height="16" src="https://github.global.ssl.fastly.net/images/spinners/octocat-spinner-32.gif" width="16" />
    

    </ul>
    
        <div class="only-with-full-nav">

HTTPS clone URL

<input type="text" class="clone js-url-field" value="https://github.com/isaacs/init-package-json.git" readonly="readonly">

SSH clone URL

<input type="text" class="clone js-url-field" value="git@github.com:isaacs/init-package-json.git" readonly="readonly">

Subversion checkout URL

<input type="text" class="clone js-url-field" value="https://github.com/isaacs/init-package-json" readonly="readonly">

You can clone with HTTPS, SSH, Subversion, and other methods.

Clone in Desktop
            <a href="/isaacs/init-package-json/archive/master.zip"
               class="minibutton sidebar-button"
               title="Download this repository as a zip file"
               rel="nofollow">
              <span class="octicon octicon-cloud-download"></span>
              Download ZIP
            </a>
        </div>
    </div><!-- /.repository-sidebar -->

    <div id="js-repo-pjax-container" class="repository-content context-loader-container" data-pjax-container>

Show File Finder

branch: master
<div class="select-menu-modal">
  <div class="select-menu-header">
    <span class="select-menu-title">Switch branches/tags</span>
    <span class="octicon octicon-remove-close js-menu-close"></span>
  </div> <!-- /.select-menu-header -->

  <div class="select-menu-filters">
    <div class="select-menu-text-filter">
      <input type="text" id="context-commitish-filter-field" class="js-filterable-field js-navigation-enable" placeholder="Filter branches/tags">
    </div>
    <div class="select-menu-tabs">
      <ul>
        <li class="select-menu-tab">
          <a href="#" data-tab-filter="branches" class="js-select-menu-tab">Branches</a>
        </li>
        <li class="select-menu-tab">
          <a href="#" data-tab-filter="tags" class="js-select-menu-tab">Tags</a>
        </li>
      </ul>
    </div><!-- /.select-menu-tabs -->
  </div><!-- /.select-menu-filters -->

  <div class="select-menu-list select-menu-tab-bucket js-select-menu-tab-bucket" data-tab-filter="branches">

    <div data-filterable-for="context-commitish-filter-field" data-filterable-type="substring">


        <div class="select-menu-item js-navigation-item selected">
          <span class="select-menu-item-icon octicon octicon-check"></span>
          <a href="/isaacs/init-package-json/blob/master/README.md" class="js-navigation-open select-menu-item-text js-select-button-text css-truncate-target" data-name="master" data-skip-pjax="true" rel="nofollow" title="master">master</a>
        </div> <!-- /.select-menu-item -->
    </div>

      <div class="select-menu-no-results">Nothing to show</div>
  </div> <!-- /.select-menu-list -->

  <div class="select-menu-list select-menu-tab-bucket js-select-menu-tab-bucket" data-tab-filter="tags">
    <div data-filterable-for="context-commitish-filter-field" data-filterable-type="substring">


        <div class="select-menu-item js-navigation-item ">
          <span class="select-menu-item-icon octicon octicon-check"></span>
          <a href="/isaacs/init-package-json/blob/v0.0.11/README.md" class="js-navigation-open select-menu-item-text js-select-button-text css-truncate-target" data-name="v0.0.11" data-skip-pjax="true" rel="nofollow" title="v0.0.11">v0.0.11</a>
        </div> <!-- /.select-menu-item -->
        <div class="select-menu-item js-navigation-item ">
          <span class="select-menu-item-icon octicon octicon-check"></span>
          <a href="/isaacs/init-package-json/blob/v0.0.10/README.md" class="js-navigation-open select-menu-item-text js-select-button-text css-truncate-target" data-name="v0.0.10" data-skip-pjax="true" rel="nofollow" title="v0.0.10">v0.0.10</a>
        </div> <!-- /.select-menu-item -->
        <div class="select-menu-item js-navigation-item ">
          <span class="select-menu-item-icon octicon octicon-check"></span>
          <a href="/isaacs/init-package-json/blob/v0.0.9/README.md" class="js-navigation-open select-menu-item-text js-select-button-text css-truncate-target" data-name="v0.0.9" data-skip-pjax="true" rel="nofollow" title="v0.0.9">v0.0.9</a>
        </div> <!-- /.select-menu-item -->
        <div class="select-menu-item js-navigation-item ">
          <span class="select-menu-item-icon octicon octicon-check"></span>
          <a href="/isaacs/init-package-json/blob/v0.0.8/README.md" class="js-navigation-open select-menu-item-text js-select-button-text css-truncate-target" data-name="v0.0.8" data-skip-pjax="true" rel="nofollow" title="v0.0.8">v0.0.8</a>
        </div> <!-- /.select-menu-item -->
        <div class="select-menu-item js-navigation-item ">
          <span class="select-menu-item-icon octicon octicon-check"></span>
          <a href="/isaacs/init-package-json/blob/v0.0.7/README.md" class="js-navigation-open select-menu-item-text js-select-button-text css-truncate-target" data-name="v0.0.7" data-skip-pjax="true" rel="nofollow" title="v0.0.7">v0.0.7</a>
        </div> <!-- /.select-menu-item -->
        <div class="select-menu-item js-navigation-item ">
          <span class="select-menu-item-icon octicon octicon-check"></span>
          <a href="/isaacs/init-package-json/blob/v0.0.6/README.md" class="js-navigation-open select-menu-item-text js-select-button-text css-truncate-target" data-name="v0.0.6" data-skip-pjax="true" rel="nofollow" title="v0.0.6">v0.0.6</a>
        </div> <!-- /.select-menu-item -->
        <div class="select-menu-item js-navigation-item ">
          <span class="select-menu-item-icon octicon octicon-check"></span>
          <a href="/isaacs/init-package-json/blob/v0.0.5/README.md" class="js-navigation-open select-menu-item-text js-select-button-text css-truncate-target" data-name="v0.0.5" data-skip-pjax="true" rel="nofollow" title="v0.0.5">v0.0.5</a>
        </div> <!-- /.select-menu-item -->
        <div class="select-menu-item js-navigation-item ">
          <span class="select-menu-item-icon octicon octicon-check"></span>
          <a href="/isaacs/init-package-json/blob/0.0.4/README.md" class="js-navigation-open select-menu-item-text js-select-button-text css-truncate-target" data-name="0.0.4" data-skip-pjax="true" rel="nofollow" title="0.0.4">0.0.4</a>
        </div> <!-- /.select-menu-item -->
        <div class="select-menu-item js-navigation-item ">
          <span class="select-menu-item-icon octicon octicon-check"></span>
          <a href="/isaacs/init-package-json/blob/0.0.3/README.md" class="js-navigation-open select-menu-item-text js-select-button-text css-truncate-target" data-name="0.0.3" data-skip-pjax="true" rel="nofollow" title="0.0.3">0.0.3</a>
        </div> <!-- /.select-menu-item -->
        <div class="select-menu-item js-navigation-item ">
          <span class="select-menu-item-icon octicon octicon-check"></span>
          <a href="/isaacs/init-package-json/blob/0.0.2/README.md" class="js-navigation-open select-menu-item-text js-select-button-text css-truncate-target" data-name="0.0.2" data-skip-pjax="true" rel="nofollow" title="0.0.2">0.0.2</a>
        </div> <!-- /.select-menu-item -->
        <div class="select-menu-item js-navigation-item ">
          <span class="select-menu-item-icon octicon octicon-check"></span>
          <a href="/isaacs/init-package-json/blob/0.0.1/README.md" class="js-navigation-open select-menu-item-text js-select-button-text css-truncate-target" data-name="0.0.1" data-skip-pjax="true" rel="nofollow" title="0.0.1">0.0.1</a>
        </div> <!-- /.select-menu-item -->
    </div>

    <div class="select-menu-no-results">Nothing to show</div>
  </div> <!-- /.select-menu-list -->

</div> <!-- /.select-menu-modal -->
init-package-json / README.md
isaacs <time class="js-relative-date" datetime="2012-06-16T21:08:23-07:00" title="2012-06-16 21:08:23">June 16, 2012</time>
README.md
<div class="participation">
  <p class="quickstat"><a href="#blob_contributors_box" rel="facebox"><strong>1</strong> contributor</a></p>
  
</div>
<div id="blob_contributors_box" style="display:none">
  <h2 class="facebox-header">Users who have contributed to this file</h2>
  <ul class="facebox-user-list">
    <li class="facebox-user-list-item">
      <img height="24" src="https://secure.gravatar.com/avatar/73a2b24daecb976af81e010b7a3ce3c6?s=140&amp;d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png" width="24" />
      <a href="/isaacs">isaacs</a>
    </li>
  </ul>
</div>
file 44 lines (32 sloc) 1.169 kb
Delete
</div>

init-package-json

A node module to get your node module started.

Usage

var init = require('init-package-json')
var path = require('path')

// a path to a promzard module. In the event that this file is // not found, one will be provided for you. var initFile = path.resolve(process.env.HOME, '.npm-init')

// the dir where we're doin stuff. var dir = process.cwd()

// extra stuff that gets put into the PromZard module's context. // In npm, this is the resolved config object. Exposed as 'config' // Optional. var configData = { some: 'extra stuff' }

// Any existing stuff from the package.json file is also exposed in the // PromZard module as the package object. There will also be free // vars for: // * filename path to the package.json file // * basename the tip of the package dir // * dirname the parent of the package dir

init(dir, initFile, configData, function (er, data) { // the data's already been written to {dir}/package.json // now you can do stuff with it })

Or from the command line:

$ npm-init

See PromZard for details about what can go in the config file.

Jump to Line

<form accept-charset="UTF-8" class="js-jump-to-line-form"> <input class="linejump-input js-jump-to-line-field" type="text" placeholder="Jump to line…" autofocus> <button type="submit" class="button">Go</button> </form>
    </div>

  </div><!-- /.repo-container -->
  <div class="modal-backdrop"></div>
</div><!-- /.container -->
</div><!-- /.wrapper -->

  <div class="container">
<div class="fullscreen-overlay js-fullscreen-overlay" id="fullscreen_overlay">
<textarea name="fullscreen-contents" id="fullscreen-contents" class="js-fullscreen-contents" placeholder="" data-suggester="fullscreen_suggester"></textarea>
<div id="ajax-error-message" class="flash flash-error">
  <span class="octicon octicon-alert"></span>
  <a href="#" class="octicon octicon-remove-close close ajax-error-dismiss"></a>
  Something went wrong with that request. Please try again.
</div>
</body> </html>

Current Tags

1 Versions

Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (0)
None
Dependents (2)

Copyright 2014 - 2016 © taobao.org |