A Simple and lightweight tool for preparing the publish of NPM packages.

Renamed to 'preppy'
Last updated 2 years ago by swernerx .
Apache-2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install simplepublish 
SYNC missed versions from official npm registry.

Sponsored by Version Downloads Build Status Unix Build Status Windows Dependencies


SimplePublish - A Simple and lightweight tool for preparing the publish of NPM packages.

SimplePublish includes a Babel-based transpiler configuration which supports all of ES2015/ES2016/ES2017. Plus support for Object-Rest-Spread and Class Properties. The High-performance async engine with support for generators and async/await powered by fast-async is enabled by default. It requires nodent-runtime to be installed when using modern async features. It uses Transform-Runtime to externalize requirements to Polyfills. Resulting code needs all Polyfills for each library published with this tool. Typically by using services like or Babel Runtime aka CoreJS.

Output Targets

SimplePublish produces exports of your sources depending on the entries of your packages package.json. It supports building for CommonJS and well as with ES Modules (ESM). Just add the relevant entries to the configuration.

  • CommonJS Output: main
  • ES Module Output: module

Basic Example:

  "name": "mypackage",
  "main": "lib/main-cjs.js",
  "module": "lib/main-esm.js"

Binary Output

Additionally prepublish is capable in generating for binary targets.

This generates a mypackage binary which is generated from the matching source file.

Binaries are generally generated from one of these source files:

  • src/binary.js
  • src/script.js

Example Configuration:

  "name": "mypackage",
  "bin": {
    "mypackage": "bin/mypackage"



$ npm install --save-dev simplepublish


$ yarn add --dev simplepublish


SimplePublish comes with a binary which can be called from within your scripts section in the package.json file.

"scripts": {
  "prepare": "simplepublish"

There is also some amount of parameters you can use if the auto detection of your library does not work out correctly.

  $ simplepublish

  --input            Input file [default = auto]
  --output-folder    Configure the output folder [default = auto]

  -m, --sourcemap    Create a source map file during processing
  -v, --verbose      Verbose output mode [default = false]
  -q, --quiet        Quiet output mode [default = false]


Apache License; Version 2.0, January 2004


Sebastian Software GmbH Logo

Copyright 2016-2017
Sebastian Software GmbH

Current Tags

  • 2.1.0                                ...           latest (2 years ago)

5 Versions

  • 2.1.0 [deprecated]           ...           2 years ago
  • 2.0.3 [deprecated]           ...           2 years ago
  • 2.0.2 [deprecated]           ...           2 years ago
  • 2.0.1 [deprecated]           ...           2 years ago
  • 2.0.0 [deprecated]           ...           2 years ago
Maintainers (1)
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 2
Dev Dependencies (4)
Dependents (0)

Copyright 2014 - 2016 © |