https://github.com/crapthings/safe-publish-and-methods
Science Score: 26.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Committers with academic emails
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (5.2%) to scientific vocabulary
Repository
Basic Info
- Host: GitHub
- Owner: crapthings
- Language: JavaScript
- Default Branch: master
- Size: 1.95 KB
Statistics
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
- Releases: 0
Metadata Files
README.md
WHY
some app require login to use any publicaitons and methods, you always write check this.userId inside every pub, method and throw error. by using this u can write less code.
INSTALL
bash
meteor add crapthings:safe-publish-and-methods
NOTICE
you can install publish unblock to get better performance, its safe to unblock every publications.
bash
meteor add meteorhacks:unblock
https://github.com/meteorhacks/unblock
https://github.com/meteorhacks/unblock/issues/2#issuecomment-60660140
API
javascript
Meteor.safeMethods(methods)
- http://docs.meteor.com/api/methods.html#Meteor-methods
javascript
Meteor.safePublish(name, func, unblock = true)
- http://docs.meteor.com/api/pubsub.html#Meteor-publish
if something wrong with unblock just set unblock to false Meteor.safePublish(name, func, false)
examples
javascript
Meteor.safeMethods({
test() {
return 'test'
}
})
javascript
Meteor.safePublish('test', function (opt) {
console.log(Meteor.user())
return this.ready()
})
Owner
- Name: crapthings
- Login: crapthings
- Kind: user
- Location: Harbin, China
- Website: https://soundcloud.com/drujk
- Twitter: crapthings
- Repositories: 43
- Profile: https://github.com/crapthings
javascript, coffeescript, typescript, solidity, ableton live, edm music
GitHub Events
Total
Last Year
Issues and Pull Requests
Last synced: over 1 year ago
All Time
- Total issues: 0
- Total pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Total issue authors: 0
- Total pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0