Giter VIP home page Giter VIP logo

format-util's Introduction

Table of Contents

Format Util

Build Status npm version Coverage Status.

Lightweight format utility for the browser, based on util.format().

Install

npm i format-util

Usage

var format = require('format-util')
  , msg = format('%s', 'foo');

Developer

Test

Run the test specifications:

npm test

Spec

Compile test specifications for the browser (open test/index.html):

npm run spec

Cover

Generate code coverage:

npm run cover

Browserify

Create a standalone browserify build:

npm run browserify

Lint

Lint the source tree with jshint and jscs:

npm run lint

Clean

Remove generated files:

npm run clean

Docs

To generate all documentation:

npm run docs

Readme

Generate the project readme file mdp:

npm run readme

License

Everything is MIT. Read the license if you feel inclined.

Generated by mdp(1).

format-util's People

Contributors

niftylettuce avatar tmpfs avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

format-util's Issues

`npm publish --dry-run` yields a bunch of files that should not be published to npm

npm publish --dry-run
npm notice
npm notice ๐Ÿ“ฆ  [email protected]
npm notice === Tarball Contents ===
npm notice 583B  .jscsrc
npm notice 50B   .jshintignore
npm notice 400B  .jshintrc
npm notice 2.7kB LICENSE
npm notice 768B  test/index.html
npm notice 804B  format.js
npm notice 1.3kB test/spec/format.js
npm notice 41B   index.js
npm notice 26B   test/index.js
npm notice 1.5kB package.json
npm notice 603B  doc/readme/developer.md
npm notice 38B   doc/readme/install.md
npm notice 422B  doc/readme/introduction.md
npm notice 126B  doc/readme/license.md
npm notice 185B  doc/readme/links.md
npm notice 2.1kB README.md
npm notice 95B   doc/readme/usage.md
npm notice 60B   test/mocha.opts
npm notice 152B  .travis.yml
npm notice === Tarball Details ===
npm notice name:          format-util
npm notice version:       1.0.3
npm notice package size:  4.8 kB
npm notice unpacked size: 11.8 kB
npm notice shasum:        df8f0f498192de281e406566f90250a75652d25a
npm notice integrity:     sha512-jHTzeJwQwMQcS[...]Zu0MuKAgYXysA==
npm notice total files:   19
npm notice

You can fix this either by adding a files property to package.json or adding a .npmignore file with these contents:

test
doc

If you go the files approach (preferred) then your package.json would have this added:

"files": [
  "format.js",
  "index.js"
]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.