UNPKG

dogecoinjs

Version:

The Comfiest Way to get Dogecoin info and events for the Web and NodeJS!

8 lines (6 loc) 272 B
const fs = require( "fs" ); const pkg = require('./package.json'); const path = __dirname + "/public/dogecoin.js"; let contents = fs.readFileSync( path, "utf8" ); contents = contents.replace( /@VERSION/g, pkg.version ); fs.writeFileSync( path, contents, "utf8" );