intermodular
Easy file operations between node.js modules and auto logging to help building zero-config boilerplates, postinstall and other scripts.
Last updated 4 hours ago by ozum .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install intermodular 
SYNC missed versions from official npm registry.

Intermodular

Easy file operations between node.js modules and auto logging to help building zero-config boilerplates, postinstall and other scripts.

???? Homepage

Install

npm install intermodular

Usage

See Homepage for full documentation and API.

const targetModule = intermodular.targetModule;
const packageJson = targetModule.getDataFileSync("package.json"); // `DataFile` instance

// Copy all config files from `.../your-module/common-config/` to `.../target-module/` (root).
intermodular.copySync("common-config", ".");
targetModule.install("lodash");
targetModule.executeSync("rm", ["-rf", "dist"]);
packageJson.set("description", `My awesome ${targetModule.name}`, { ifNotExists: true });

if (intermodular.targetModule.isTypeScript) {
  intermodular.copySync("config/tsconfig.json", ".");
}

Author

???? Özüm Eldoğan

Show your support

Give a ⭐️ if this project helped you!

???? License

Copyright © 2019 Özüm Eldoğan.
This project is MIT licensed.

Current Tags

  • 0.5.3                                ...           latest (4 hours ago)

36 Versions

  • 0.5.3                                ...           4 hours ago
  • 0.5.2                                ...           4 hours ago
  • 0.5.1                                ...           5 hours ago
  • 0.5.0                                ...           6 hours ago
  • 0.4.0                                ...           a day ago
  • 0.3.5                                ...           a day ago
  • 0.3.4                                ...           a day ago
  • 0.3.3                                ...           a day ago
  • 0.3.2                                ...           a day ago
  • 0.3.1                                ...           a day ago
  • 0.3.0                                ...           a day ago
  • 0.2.0                                ...           2 days ago
  • 0.1.1                                ...           4 days ago
  • 0.1.0                                ...           5 days ago
  • 0.0.24                                ...           17 days ago
  • 0.0.23                                ...           20 days ago
  • 0.0.22                                ...           20 days ago
  • 0.0.21                                ...           21 days ago
  • 0.0.20                                ...           21 days ago
  • 0.0.19                                ...           21 days ago
  • 0.0.18                                ...           21 days ago
  • 0.0.17                                ...           21 days ago
  • 0.0.16                                ...           21 days ago
  • 0.0.15                                ...           21 days ago
  • 0.0.14                                ...           21 days ago
  • 0.0.13                                ...           21 days ago
  • 0.0.12                                ...           21 days ago
  • 0.0.11                                ...           21 days ago
  • 0.0.10                                ...           21 days ago
  • 0.0.9                                ...           21 days ago
  • 0.0.8                                ...           21 days ago
  • 0.0.7                                ...           21 days ago
  • 0.0.6                                ...           22 days ago
  • 0.0.4                                ...           22 days ago
  • 0.0.2                                ...           22 days ago
  • 0.0.1-1                                ...           a month ago
Maintainers (1)
Downloads
Today 0
This Week 182
This Month 230
Last Day 74
Last Week 32
Last Month 329
Dependencies (27)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |