nomsy-paste
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "nomsy-paste", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "A link generator for paste.nomsy.net (a hastebin alternative, because hastebin is being weird)", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -1,13 +0,13 @@ | ||
# hastebin-generator | ||
A npm module for generating hastebin links. | ||
https://www.npmjs.com/package/hastebin-generator | ||
# nomsy-paste | ||
A link generator for https://paste.nomsy.net (a hastebin alternative, because hastebin is being weird) | ||
https://www.npmjs.com/package/nomsy-paste | ||
## Installation | ||
`npm i hastebin-generator` | ||
`npm i nomsy-paste` | ||
## Examples | ||
```js | ||
const h = require('./index'); | ||
const h = require('nomsy-paste'); | ||
h('code', 'js').then(r => { | ||
console.log(r); //https://hastebin.com/ifuzovakeg.js | ||
console.log(r); | ||
}).catch(console.error); | ||
@@ -17,4 +17,3 @@ ``` | ||
```js | ||
require('hastebin-generator')(require('fs').readFileSync(__filename), 'js').then(r => console.log(r)) | ||
//https://hastebin.com/qoziyevubu.js | ||
require('nomsy-paste')(require('fs').readFileSync(__filename), 'js').then(r => console.log(r)) | ||
``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1366
18